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

ASP.NET ImageButton CausesValidation Property

ASP.NET ImageButton CausesValidation Property


ImageButton Control ImageButton control


Definition and Usage

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

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

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

Syntax

"TRUE|FALSE"

runat="server"

/>


Example

The following example cancels validation when the ImageButton is clicked:

CausesValidation="FALSE" ImageUrl="img.gif" />

Demo Example »


ImageButton Control ImageButton control