zoukankan      html  css  js  c++  java
  • 错误源:WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).

    Server Error in '/' Application.


    WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    Exception Details: System.InvalidOperationException: WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).
    Source Error: 

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    错误原因:

      页面中使用了服务器验证控件,如<asp:RequiredFieldValidator ID="requiredFieldValidator1" runat="server" ControlToValidate="txtTitle" ErrorMessage="请填写标题!"></asp:RequiredFieldValidator>

    解决办法:

      参考:http://www.cnblogs.com/luckly-hf/archive/2013/09/10/3312628.html  

      或者删除页面中的服务器验证控件,使用自己写的js方式的验证用户输入。

  • 相关阅读:
    虚拟机docker开启服务,本地无法进行访问
    make编译提示:make cc Command not found 解决办法
    yum -y install git 无法安装...提示There are no enabled repos.
    linux 安装mysql
    linux 配置环境变量
    HTML5第三天 无序有序列表、相对绝对路径
    JavaScript第一天
    HTML第二天
    mysql流程控制语句
    mysql存储过程和函数
  • 原文地址:https://www.cnblogs.com/slwangzi/p/5211309.html
Copyright © 2011-2022 走看看