简体   繁体   中英

How to completely disable javascript validation in asp.net mvc 3

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 aps.net mvc.

How can i achieve this?

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM