DropDownList Pain

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
 
C

charmis p varghese

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

regards
charmis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top