ASP.NET CausesValidation Property
Complete Button Control Reference
Definition and Usage
The CausesValidation property specifies if a page is validated when a Button
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:Button CausesValidation="TRUE|FALSE" runat="server" />
|
Example
The following example removes validation when a button is clicked:
<form runat="server">
<asp:Button id="button1" runat="server"
CausesValidation="FALSE" Text="Cancel" />
</form>
|
Try-It-Yourself Demos
Set the CausesValidation for a Button control to False
Complete Button Control Reference
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
|