I have a web page with two dropdowns in formview. I want to change items in the second dropdown when the user selects an item in the first dropdown.
+1
A:
Add a SelectedIndexChanged
event on the first dropdown and then, in that event's code, bind the second one. Also, you have to set AutoPostBack="True"
on your first dropdown.
You might also want to put the two dropdowns inside an UpdatePanel
, to avoid posting the entire page each time.
Dan Dumitru
2010-09-21 16:09:18