Disable client-side validation in MVC 3 “cancel” submit button

后端 未结 4 1758
梦谈多话
梦谈多话 2020-12-02 15:39

OK, been trying things for hours and could use some help. I\'m trying to implement a page in MVC 3 that has \"back\" and \"next\" buttons. When the back button is clicked I

4条回答
  •  Happy的楠姐
    2020-12-02 16:02

    The validation scripts seem to be linked to the submit type input. By changing cancel to a button, validation is skipped:

    
    

提交回复
热议问题