DropDownList Pain

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Have a DropDownList whose selection modifies child dropdownlists. I cannot
get the OnSelectedIndexChanged event to fire. In the aspx page I have:

<asp:dropdownlist onselectedindexchanged="UpdateDependentDropdown" ... >

In the code behind, in the InitializeComponent routine, I have:

this.DropDownList.SelectedIndexChanged += new
System.EventHandler(this.UpdateDependentDropdown)

When I insert a breakpoint in the UpdateDependentDropdown function, it never
gets hit. Any ideas as to why?

thanks
 
I think you forgot to set AutoPostBack property of dropdownlist to true.

regards
charmis
 
Back
Top