disable validation controls

  • Thread starter Thread starter Andy G
  • Start date Start date
A

Andy G

Quick question. I have numerous validation controls on a web form. I also
have a cancel button on the web form that
Response.Redirect("previouspage.aspx"), but when you click the button all of
my validations fire off and display my Validation Summary. How do I disable
the validation controls for this click event only?

Thanks
 
Set the button's CausesValidation proeperty to false.

Quick question. I have numerous validation controls on a web form. I also
have a cancel button on the web form that
Response.Redirect("previouspage.aspx"), but when you click the button all of
my validations fire off and display my Validation Summary. How do I disable
the validation controls for this click event only?

Thanks
 
Back
Top