Reputation: 6518
I have a Razor view with multiple buttons. I only want validation to occur when the user clicks one of these buttons.
How do I stop or clear validation of fields in the controller?
Upvotes: 1
Views: 3388
Reputation: 101150
To disable client side validation:
Disable client-side validation in MVC 3 "cancel" submit button
To disable server side validation:
Upvotes: 1