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?
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?
To disable client side validation:
Disable client-side validation in MVC 3 "cancel" submit button
To disable server side validation: