Validation ASP.Net Tutorial

Set False to CausesValidation property of Button, LinkButton, and ImageButton control
then clicking the button bypasses any validation in the page.
<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    void btnCancel_Click(Object sender, EventArgs e)
    {
        Response.Redirect("~/Default.aspx");
    }



    Show Disable Validation


    
    

            id="lblFirstName"
        Text="First Name:"
        AssociatedControlID="txtFirstName"
        Runat="server" />
            id="txtFirstName"
        Runat="server" />
            id="reqFirstName"
        ControlToValidate="txtFirstName"
        Text="(Required)"
        Runat="server" />
            id="btnSubmit"
        Text="Submit"
        Runat="server" />
            id="btnCancel"
        Text="Cancel"
        OnClick="btnCancel_Click"
        CausesValidation="false"
        Runat="server" />