locked
adding a ScriptResourceMapping named jquery(case-sensitive). RRS feed

  • Question

  • User-1266629273 posted

    when I run the web form which has login contorls i encounter with this Error:

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

    would you mind please help me what the problem is and how can I solve it?

    Sunday, December 15, 2013 7:17 AM

Answers

  • User-1509636757 posted

    You need a web.config key to enable the pre 4.5 validation mode

    <appSettings>
        <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
      </appSettings>

    msdn link: UnobtrusiveValidationMode Enumeration (System.Web.UI)

    Specifies how ASP.NET globally enables the built-in validator controls to use unobtrusive JavaScript for client-side validation logic.


    Type:

    UnobtrusiveValidationMode

    Default value:

    None

    Remarks:

    If this key value is set to "None" [default], the ASP.NET application will use the pre-4.5 behavior (JavaScript inline in the pages) for client-side validation logic. If this key value is set to "WebForms", ASP.NET uses HTML5 data-attributes and late bound JavaScript from an added script reference for client-side validation logic.

    Example:


        <appSettings>
          <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
        </appSettings>
    

    hope it helps./.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, December 15, 2013 8:55 AM