Please enable Javascript for better experience...
WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for jquery. Please add a ScriptResourceMapping named jquery(case-sensitive)
By Big | Mar 14, 2015 | In Tips | Total Views [ 949 ]
(2 Like)
Rate

Set ValidationSettings:UnobtrusiveValidationMode to None in web.config file to resolve this issue.

The Problem

I got an error while adding Asp.Net validation control to my page. Error was "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive)". I checked everywhere in my application for the error but was unable to identify that. It was troubling me a lot as implementing validtion to your page is the basic requirement and anyhow it must be implemented.

The solution

You  can resolve this issue adding only one line of code in your config file. Simply add this code in your web.config file and you will be happy.

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

Hope this can help you.

Share this

About the Author

Big
Rahul Jha (Big)
Founder, Developer dotnet-concept.com
Has working experience in different phases of Software Development Life Cycle (SDLC) in CMS, Gaming, Health Care and Financial Services domain using Agile pattern. Working experience in Design patterns, ASP.NET, MVC, Windows application, WCF, ADO.NET, SQL Server and Test Driven Development (TDD) environment with JQuery, JavaScript, N-Unit, Entity Frameworks, LINQ, Code Refactoring and Business Objects Models.

 
Please SignUp/Login to comment...

Or comment as anonymous...
* Name
* Email ID
Comment