Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Drop Down List Selected Value not firing SelectedIndex Event

Status
Not open for further replies.

ralphtrent

Programmer
Jun 2, 2003
958
US
Hello
I am trying to create a site where feilds are to be sent to user preferences. The values of some drop down's rely on the values of other drop downs. That part is working fine using autopostback, but when I populate a drop down based on a user preference I do so using the ddl.SelectedValue property. When I do this, I need the SelectedIndexChanged event of the drop down to fire, so the drop down below is populated corrected. how do I raise the Selected Index Event when setting the Value of the drop down?

Thanks
 
If you are trying to create a cascade of dd loads then you should be able to do so by calling them in order... ie dd1 calls dd2.SalectedIndexChanged, and that sub calls dd3.SelectedIndexChanged and so on. Is that what you are asking?

Senior Software Developer
 
I was able to solve my problem. I just raised the event for, ddlx_IndexChanged, manually in my code.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top