Button CausesValidation Property
Definition and Usage
The CausesValidation property specifies if a page is validated when a Button control is clicked.
Page validation is performed when a button is clicked by default.
This property is mostly used to prevent validation when a cancel or reset button is clicked.
The following example removes validation when a button is clicked:
<asp:Button id="button1" runat="server"
CausesValidation="FALSE" Text="Cancel" />
Show example »
Thank You For Helping Us!
Your message has been sent to W3Schools.