Latest web development tutorials

ASP.NET ImageButton CausesValidation property

ImageButton control ImageButton control

Definition and Usage

CausesValidation attribute specifies when the ImageButton control is clicked page is validated.

When the button is clicked, by default, page validation is performed.

This attribute is used to prevent most cases be validated cancel or reset button is clicked.

grammar

<asp:ImageButton CausesValidation="TRUE|FALSE"runat="server" />


Examples

The following examples in the ImageButton is clicked revoked verification:

<form runat="server">
<asp:ImageButton id="button1" runat="server"
CausesValidation="FALSE" ImageUrl="img.gif" />
</form>

The demonstration >>

ImageButton control ImageButton control