Cause validation property in asp.net c#


By default, page validation is performed when a Button control is clicked.
CausesValidation property determines whether validation must be performed on Button click or not ,if asp.net validation control are used , in simple word The CausesValidation property specifies if a page is validated when a Button control is clicked.it can be either true or false .By default it is true.


Most we are use this validation is Cancel / reset because there we do not need to any validation  
Syntax:-

<asp:Button ID="Button1" runat="server" onclick="Button1_Click"  CausesValidation="false" Text="Submit" />


Cause validation property in asp.net c# Cause validation property in asp.net c# Reviewed by NEERAJ SRIVASTAVA on 5:18:00 PM Rating: 5

No comments:

Powered by Blogger.