DropDownList and SelectedIndexChanged

djpaz25

Newcomer
Joined
Nov 12, 2003
Messages
12
Have a DropDownList on a Web Form. In the DDL's SelectedIndexChanged event handler, I do things based on the selection. The problem is that the SelectedIndexChanged doesn't fire if the user drops down the list but chooses the first item on the list. I understand why it doesn't fire, since the index doesn't change. What event do I want to look at that will fire when the user clicks on the drop down list but doesn't change the selection? Or can I have no index selected when presenting to the user so that any change he makes fires SelectedIndexChanged?

Thanks.
 
yes u should add an item at the top, like --select-- and then any change will raise selectedindexchanged
 
Back
Top