Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Button CausesValidation Property

ASP.NET Button CausesValidation Property


Button Control Button Control


Definition and Usage

The CausesValidation property specifies whether the page is validated when the Button control is clicked.

By default, page validation is performed when the button is clicked.

This property is commonly used to prevent validation when a cancel or reset button is clicked.

Syntax

"TRUE|FALSE"

runat="server"

/>


Example

Example

The following example does not perform validation when the button is clicked:

CausesValidation="FALSE" Text="Cancel" />

Demo Example »


Button Control Button Control