ASP.NET CausesValidation Property


ImageButton Control Reference Complete ImageButton Control Reference

Definition and Usage

The CausesValidation property specifies if a page is validated when a ImageButton 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.

Syntax

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


Example

The following example removes validation when an ImageButton is clicked:

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

Show example »

ImageButton Control Reference Complete ImageButton Control Reference

Color Picker

colorpicker