Enable or disable client side validations in mvc4
We can enable or disable the client side validations in MVC4 by doing simple configuration / code changes.
For enable / disable validations application level:
We can use any one of the below two methods (web.config change or Global.asax.cs change)
Configuration change in web.config
Code change in Global.asax.cs file
For enable/disable validation in a particular view
set the below two properties in the View Razor code.
In addition to the above changes for enable the client side validations we need to add the JQuery, jquery.validate, jquery.validate.unobtrusive js file reference in bundleconfig.cs and we have to consume them in the view.
In View Razor code at bottom: