dropdownlist

Making GridView Respond to 2 Drop Down Lists

Hi there. I have got 2 Drop Down Lists on my Form and 1 GridView. I want GridView to display the data according to selection from the Drop Down Lists. For Example, One Drop Down List contains Names and other contains Dates. Both the Drop Down Lists can post back. So if i select a name from 1st Drop Down list, the Grid View should show ...

Drop down list in ASP.NET

Hi friends, I'm having a dropdown list in my web page. And it contains two lists. 1. Yes 2.No. If we select yes then the desired text box and label will visible, else it won't be visible. So hw to do this? ...

Find value of selected item in Drop down menu.

I have a drop down menu in an ASPX page along the lines of: <form> <select name="cars"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="fiat" selected="selected">Fiat</option> <option value="audi">Audi</option> </select> </form> That is dynamically generated from another controller (value...

Asp.net RenderControl method not rendering autopostback for dropdownlist

Hi all, i am bit confused as to why asp.net does not render a dropdownlist with the autopostback property set to true when using the RenderControl method. eg Dim sw As New IO.StringWriter Dim tw As New HtmlTextWriter(sw) Dim table As New Table table.Rows.Add(New TableRow) Dim tr As TableRow = table.Rows(0) tr.Ce...

Looking for a Sample of a "Related Questions" List like on StackOverflow

Many websites have a feature that suggests items based upon what you're currently typing. For example, here on Stack Overflow you are suggested similar questions as you type a question title. How can I do something similar to this? ...

mvc fill dropdownlist

i use this code to fill dropdownlist ViewData["projectType"] = new SelectList (_dataManager.Project.ProjectTypeList(), "Id", "Name"); but what i must do if i want to use not one table column but two or more columns? for example ViewData["projectType"] = new SelectList (_dataManager.Project.ProjectTypeList(), "Id", "Name1"+"N...

Best way to support large dropdowns

Say I have a report that can be restricted by specifying some value in a dropdown. This dropdown list references a table with > 30,000 records. I don't think this would be feasible to populate a dropdown with! So, what is the best way to provide the user the ability to select a value given this situation? These values do not really have ...

Asp.Net, Dynamic Data Website, Foreign key One to One relationship, DropdownList, how to customise?

Hi, I'm using Asp.Net's Dynamic Data Website project type. I've created a db that has one to onerelationship between two tables specified using a foreign key, (this could be one to many but I've used the linq designer to change it to a one to one relationship). i.e. I have a table Invoice and table CreditNote that takes an Invoice_Id as...

Why SelectedIndexChanged fires for a DropDownList when a button is clicked?

I have an ASP.NET DropDownList with AutoPostBack=true and EnableViewState=false. I have a button on the page that does nothing. If I change the selection in the ddl, it posts back , which is expected. If I click the button, the page posts back and the ddl's SelectedIndexChanged fires. Why does it get fired? ...

Model binding form to a List using dropdown. binding failing 1 way for dropdown

I have an action called Sessies. In this action i am creating 'Sessies' objects from a form. if they don't exist i add them in the DB, if there are already Sessies objects connected to the 'Reeksen' object, i load the 'Sessies' into the form so that they can be edited. so i have a create and edit in 1 and the same form. Also, a 'Reeksen...

Entering Values into dropdown and Saving

Hi, Is it possible for entering values into dropdown and saving that values to DB? If yes please help me by giving the code for that. Thanks in advance ...

web drop-down combo box with large list of records

The amount of records to be displayed in drop-down combo boxes affect the performance of internet applications. What are the current best practices to solve this problem? Are paginated drop-downs the only solution? What is considered a large list? >100 or > 1000? ...

DropDownList always does full-page postback, the first time it fires.

I have an ASP.NET page using the AJAX library. There is a dropdownlist inside an UpdatePanel, which on index changing is supposed to update a different UpdatePanel to modify a grid control. But after the page first comes up, and you adjust the ddl, the entire page postbacks, followed by a (correct) partial postback. After this one tim...

What to use instead of if(isset($_POST['submit'])) for this.form.submit()?

I want to run a particular block of PHP if the user submits a form. It works if I use a submit button with name="submit" and: <?php if(isset($_POST['submit'])) { code to run } ?> I don't know anything about javascript, and I want the code to run if the user changes a dropdown menu. If I make the first line of the dropdown <select n...

How Does One Implements Lists in Domain Driven Design?

How does one implement lists such as a list of months in the year, or a list of years in DDD? Where does the logic go, inside value objects, a service, is it part of the domain layer? ...

Is it possible to bind data asynchronously between two dropdownlists in a view?

I'd like to achieve the following effect using ASP.NET MVC and JQuery. I've got a drop down list displaying a list of Countries. I want to make it so that when I change the value of the country, a new drop down list appears below it, showing a list of companies whose country of origin is the particular selected company. The thing is th...

ASP.NET MVC 2 DropDownList not rendering

Hi, so I don't understand what I am doing wrong here. I want to populate a DropDownList inside the master page of my ASP.NET MVC 2 app. Projects.Master <div id="supaDiv" class="mainNav"> <% Html.DropDownList("navigationList"); %> </div> MasterController.cs namespace ProjectsPageMVC.Controllers.Abstracts { public abstract class ...

I have a php form dropdown menu that needs to send information

I have a dropdown menu that is filled by a mysql database. I need to select one and have it send the information for use on the next page after clicking submit. It does populate the drop down menu like it is supposed to it just does not seem to catch the data on the next page. Here is what I have: removeMain.php <html xmlns="http://www...

iPhone + alternative to drop downs

Hello, I am developing native iPhone app. I have one requirement that, there are 5 drop downs in the screen, where user will select each value and based on that there will be a graph generated on screen. Also the drop downs are cascading, meaning that depending on value selected in upper drop down, the values in lower drop downs will...

Setting the target and parent dropdown values from a DB when using CascadingDropDown

Hi, I have two dropdown lists with Cascading Dropdown, in the usual fashion: <asp:DropDownList ID="DropDownListIndustry" runat="server" DataSourceID="SqlDataSourceIndustries" DataTextField="name" DataValueField="industry_id" AppendDataBoundItems=" <asp:ListItem Text="(Please Select)" Value="-1" /> </asp:DropDownList> &nbsp;&nb...