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

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -