我是靠谱客的博主 重要茉莉,这篇文章主要介绍VS使用验证控件出现“WebForms UnobtrusiveValidationMode 需要“jquery”ScriptResourceMapping。请添加一个名为 jquery (区分,现在分享给大家,希望可以做个参考。

   1、  在程序允许的情况下,降低.Framework的版本,具体方法如下:

原文:https://blog.csdn.net/zxsydyq/article/details/52793830 

 

 

复制代码
1
2
3
4
5
6
7
8
9
10
11
<!--修改前--> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" /> <!—将其删除--> </system.web> <!--修改后--> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web>

 

2、更改Web.config配置文件设置Unobtrusive ValidationMode的类型,具体方法如下:

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!--修改前--> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" /> </system.web> <!--修改后--> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" /> </system.web> <appSettings> <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" /> </appSettings>

 

 

最后

以上就是重要茉莉最近收集整理的关于VS使用验证控件出现“WebForms UnobtrusiveValidationMode 需要“jquery”ScriptResourceMapping。请添加一个名为 jquery (区分的全部内容,更多相关VS使用验证控件出现“WebForms内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(50)

评论列表共有 0 条评论

立即
投稿
返回
顶部