I just spent about two hours working on this same problem...
What I found was when the listitems were generated through a loop in the codebehind file and I didn't explicitly set one to SELECTED, the SelectedIndexChanged event never fires.
When I add a default value (either through the markup or in the codebehind), this works fine. I wouldn't expect this kind of behavior - I assumed (until now) index 0 would be the default if no option was selected...
drop downDropdownList selectiondrop down dropdownlist autopostbackDropdownListist Postback"asp.net"
tmorgan
Member
4 Points
4 Posts
Re: SelectedIndexChanged event of dropDownList not firing
Jun 15, 2010 05:04 PM|LINK
I just spent about two hours working on this same problem...
What I found was when the listitems were generated through a loop in the codebehind file and I didn't explicitly set one to SELECTED, the SelectedIndexChanged event never fires.
When I add a default value (either through the markup or in the codebehind), this works fine. I wouldn't expect this kind of behavior - I assumed (until now) index 0 would be the default if no option was selected...
drop down DropdownList selection drop down dropdownlist autopostback DropdownListist Postback "asp.net"