HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE