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 ?
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 ?