ASP.NET CausesValidation Property
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 »
|
Complete ImageButton Control Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|