DropdownList problem
-
I have a DropDownlist on my ASPX form. I need to populate another DropDownList when I make a selection from the first one. As soon as the code behind triggers on the SelectedIndexChanged event, the selected item resets to Item(0). Trying to use the value of the selected item in the code then always uses the first listitem, and not the last selected item. How do I stop this from happening when code-behind is executed ?
-
I have a DropDownlist on my ASPX form. I need to populate another DropDownList when I make a selection from the first one. As soon as the code behind triggers on the SelectedIndexChanged event, the selected item resets to Item(0). Trying to use the value of the selected item in the code then always uses the first listitem, and not the last selected item. How do I stop this from happening when code-behind is executed ?
-
in the page_load do: if(!IsPostBack) { //Load List drop down list } This means the list will only load at page load up :) and postbacks wont cause the change! Atul