c# - How to turn required field validator off when selecting cancel button -
i have problem page has required field validator, want use 'cancel' button take user menu page using response.redirect("default.aspx");
problem field validator keeps firing when click cancel button. how turn off user can return menu page?
just add causesvalidation="false"
button definition , won't raise validators:
<asp:button id="btncancel" runat="server" text="cancel" causesvalidation="false" />
Comments
Post a Comment