I am looking to create a dropdown list on my default.aspx page which i want it to contain List documents/pages and when the document/page is selected the page should redirect to the selected document/page.
Any suggestions of how this can be done please?
any examples/samples would be grealy appreciated?
Thank you :)
...
Hi all,
I have a view that looks somewhat similar to this
<% using (Html.BeginForm()) {%>
<%= Html.DropDownList("Category") %>
<%= Html.DropDownList("SubCategory") %>
<input type="submit" value="Print" />
<%= Html.ActionLink("Cancel", "Index") %>
<% } %>
I was wondering if anyone knew how i could load the subcategory...
I just want to create a dropdown list whenever I choose a new value inside it will take me to a new webpage. I don't want to let user to click "GO" button to go to the page. Just on select and call the action. How can I do such ?
<form>
<p align="center"><b>Select a Site </b>
<select id="setit" style="color: #0000FF" size="1" name="test...
Is it possible to create customised dropdown menus in EG? ie I would like to present a user with a list of dropdowns, and the ability to click a 'submit' button that would use the values of those dropdowns to run a SAS macro...
Also, is this possible without setting up a stored process?
...
The ObjectChoiceField field meets all my requirements but it is not pretty.
This is what I have:
String pets[] = {"Dog", "Cat", "Duck" };
ObjectChoiceField dd = new ObjectChoiceField("My Pet",pets,0,ObjectChoiceField.FIELD_LEFT);
But I would prefer to have pictures in the dropdown. My understanding is that the object array must conta...
Code:
<% using (Ajax.BeginForm("GetResourcesByProject", "CreateRequest", new AjaxOptions { UpdateTargetId = "ResourceListDiv"}))
{
Response.Write(Html.DropDownList("SelectProject", Model.ProjectList, "Select Project", new { onchange = "this.form.submit();" }));
} %>
When I run the page I get the correct controller action to trigger w...
During page load, index 0 was already selected. Then this code statement selected index 1:
dropDownList.Items.FindByValue(myValue).Selected = true;
// assume myValue is found at index 1 of dropDownList.Items
On completion of page load, the page reads: "System.Web.HttpException: Cannot have multiple items selected in a DropDownList."
...
I'm binding to a dropdown. It works on the initial load. On subsequent loads (postbacks) it doesn't refresh the items in the dropdown.
using (DataView dv = dtProductGroup.DefaultView)
{
dv.ApplyDefaultSort = false;
dv.Sort = "KVIGroupName ASC";
ddlGroup.ClearSelection();
ddlGroup.Items.Clear();
...
I have the following on my edit screen:
<label for="campaign.CandidateID">Candidate:</label>
<%= Html.DropDownList("Campaign.CandidateID", Model.Candidates, "Choose...")%>
<%= Html.ValidationMessage("CandidateID", "*") %>
and in my controller:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Edit(int id, FormCollection formValues)
{...
I have a page where i am using jquery accordion to show /toggle some content.I have placed all the accordion content inside a div called divAccordionHolder.When the page loads initially, i dont want to show this div,When user clicks a button in the page,the div which has accordion would be visible.I have set the visibility of the divAcco...
I'm new to MVC, but I've been all over this, read all the documentation and all the questions and all the blog posts I can find, and all I'm doing is getting completely wrapped around the axle.
I'm trying to make a "create" Action and View. My data entry is relatively straight forward, and common: I have a drop down list and a text box....
Hi Everyone,
I'm trying to build an AutoComplete DropDown List that will work on a Mobile Browser (Pocket IE, Opera Mobile, etc.) So for example, if I had one for US States, after typing in 'Ma', I'd expect to see 'Maine', 'Maryland', 'Massacusetts' as selectable options
I've been able to build one for a traditional browser with no is...
i want to save selected values from dropdownlist in edit mode. can u plz tell me how to do that...?
here's my code:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Edit( Requirements reqToEdit, FormCollection frm)
{
try
{
// var dropdownlistname= int.Parse(frm["aa"]);
// TODO: Add update...
I'm new to MVC and C#. I'm trying to get a static list to work with a DropDownList control such that the selected value rendered is set by the current Model value from the DB.
In the controller, I have:
ViewData["GenderList"] = new SelectList(new[] { "Female", "Male", "Unknown" }, donor.Gender);
In the view:
Gender:<%=Html.DropDo...
Hi,
I'm working on an InfoPath 2007 form. I have two drop-down lists and i need the second to be populated with items bases on the value chosen in the first list. I use c# to populate the drop-dpwn lists from external sources. I've tried to use the OnChange event to make all this, but the second list is still empty.
If anyone knows, pl...
hello,
How can I get asp dropdownlist selected text in Jquery, not selected value/
...
Using the templated helpers in MVC2.0 I ran into a dillema, how to get the items to fill a dropdownlist.
I am using a [UIHint(BadgesDropDown)] attribute, but how will i get the list items without violating the MVC Pattern, should the controller place them in the ViewData? Should the BadgesDropDown.ascx invoke a Helper to get them ?
Righ...
This construction below using dropdownlist does not work!!
<% = Html.DropDownList (ddlUf, "All", New With (. Class = "text"})%>
It only works if I do this:
<% = Html.DropDownList (ddlUf, "All")%>
Or this:
<% = Html.DropDownList (ddlUf, Nothing, New With (. Class = "text"})%>
How do I solve this problem?
Thanks
...
I have a table with multiple rows in each row is a select list and based on the selection (when the onchange event is fired) panels appear containing additional data below the row.I currently have code like this:
var allPnls = '.inv-dtl-comnts-add,.inv-dtl-comnts-update';
$(document).ready(function(){
hideAll();
//select a...
I have to build a DropDownList with the dates of the last 7 days. I would like the DropDownList displays the date as "DD/MM/YYYY". So I created a list of dates:
DateTime date = DateTime.Now;
List<DateTime> dates = new List<DateTime>();
for (int i = 0; i < HISTORY_LENGTH; i++)
{
dates.Add(date.AddDays(-i));
}
DropDownList.DataSourc...