What is CausesValidation Property in ASP.NET?

 Posted by Virendradugar on 12/31/2009 | Category: ASP.NET Interview questions | Views: 29293

CausesValidation property determines whether validation must be performed on button click or not, if asp.net validation control are used. It can be either true or false. By default it is true.

It is mostly used for Cancel/Reset button, where we don't want to perform any kind of validations.

<asp:Button ID="btnCancel" runat="server" Text="Cancel"

Visible="false" CausesValidation="false" />

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response