0

I want to write all the code that will be sent to the browser to have it under my complete control.

For this I need to completely disable javascript validation that is provided with ASP.NET MVC.

How can i achieve this?

1 Answer 1

7

I'm not sure I fully understand your question, but try changing the values in the web.config for the "ClientValidationEnabled" and "UnobtrusiveJavaScriptEnabled" to false:

 <add key="ClientValidationEnabled" value="false" />
 <add key="UnobtrusiveJavaScriptEnabled" value="false" />

Hope this helps!

1
  • It should be in your <appSettings>, if it's not, add it in. make sure it's the global web.config, not the one inside the views folder. Commented Oct 3, 2012 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.