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!

OnServerValidate 1

Status
Not open for further replies.

lfc77

Programmer
Aug 12, 2003
218
GB
I have 2 buttons on my ASP.NET page, one to Submit the user details and 1 to bring up a calendar. On the page I also have a custom validator which calls a procedure via OnServerValidate.

The problem I have is that pressing the other button also triggers the OnServerValidate. Does anybody know how I can stop this from happening?


Thanks,

lfc77
 
Setting the
Code:
CausesValidation="False"
attribute in the other button's tag might work.

regards,
Blaxo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top