ASP.NET Button CausesValidation property
Definition and Usage
CausesValidation attribute specifies when the Button control is clicked page is validated.
When the button is clicked, the default execution page verification.
This property is commonly used to authenticate when the Cancel button to stop or reset button is clicked.
grammar
<asp:Button CausesValidation="TRUE|FALSE"runat="server" />
Examples
Examples
The following example will not perform validation button is clicked:
<form runat="server">
<asp:Button id="button1" runat="server"
CausesValidation="FALSE" Text="Cancel" />
</form>
<asp:Button id="button1" runat="server"
CausesValidation="FALSE" Text="Cancel" />
</form>
The demonstration >>
Button controls