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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnSelectedIndexChanged not fired if exist with a submit button

Status
Not open for further replies.

znet

Programmer
Aug 23, 2004
41
CA
Hi all,
I have a page with a dropdownlist and a textbox and a button. I want the user to search product either by ID (using textbox and submit button) or by product type (using dropdownlist). But I can’t get the OnSelectedIndexChanged event to fire. If I not use the submit button, it works fine. Who can help me,
Thanks



 
Hi Checkai,
Yes I have autopostback = true on the ddlist, if not that button, OnSelectedIndexChanged event works fine.
 
Hi Checkai,
I got it, it's javascript error. I set button id='submit' mistakely. Just change it, for ex id='submit1', then everything works fine. Thanks your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top