Click here to Skip to main content
15,920,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am Designing web application when I was Executing the below code
Error Message I am getting is
JavaScript
WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive). 

can anyone please suggest how to solve and what would be the code behind for this...
Thanks in advance!!!
Posted
Updated 7-Dec-15 23:53pm
v5

Hi
Please place the following line inside the 'appsetting' tag of the web.config file

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



Thanks
 
Share this answer
 
v2
Comments
saisupraja 8-Dec-15 4:44am    
Thanks its working got output.....
Praveen_P 8-Dec-15 4:47am    
Welcome , then plz rate my solution :)
Um. There really isn;t much we can suggest except "read the error message".
It tells you what you need to do in order to use "UnobtrusiveValidationMode".

So either check your naming, or look at the code you added related to unobtrusive validation mode and compare with the documentation.

We can't do any of that for you - we can't see your screen, access your HDD, or read your mind...
 
Share this answer
 
This error occurred on framework 4.5, here ASP.NET uses HTML5 data-attributes and late bound JavaScript from an added script reference for client-side validation logic, so to avoid this error you need to set 'UnobtrusiveValidationMode' to 'none' in web.config, add below tag in web.config to resolve it
XML
<appSettings>
      <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
 </appSettings>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900