ASP.NET ImageButton CausesValidationProperty
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
<asp:ImageButton CausesValidation="TRUE|FALSE" runat="server" />
Example
The following example disables validation when the ImageButton is clicked:
<form runat="server">
<asp:ImageButton id="button1" runat="server"
CausesValidation="FALSE" ImageUrl="img.gif" />
</form>
<asp:ImageButton id="button1" runat="server"
CausesValidation="FALSE" ImageUrl="img.gif" />
</form>
Show example »
ImageButton Control Other Extensions