Select the selected index of a DropDown C#
Posted on 2007-03-23
I have a curious problem. I am coding in C#.
I have a number of DropDown lists on an aspx page. By default the selected index of all DropDowns is 0 or the first item in the list. My problem is that I want the user to be able to select the first item in the DropDown. I have all of the DropDowns bound and rebound depending on the selections the user makes. Each time a value is changed a new Datasource is created showing only the items that are remaining based on the previous selections. So basically my question is how do I select the already selected item in a DropDown list to fire off the SelectedIndexChanged event to code on?