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

bypass RequiredFieldValidator if hit Exit button

Status
Not open for further replies.

wendas

MIS
Apr 20, 2001
92
US
Is there a way to tell the system to bypass the RequiredFieldValidator if the Exit button is hit? It seems that on other websites You are required to enter a name or address, but if you hit cancel, or return to shopping, it doesn't force you to enter the info before you can get out.
 
On the exit button set the RequiresValidation property to false
 
you need to configure the button so it will not call validation. mybutton/link/control.CausesValidation = false;

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
or you can set the validationgroup to something different.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top