Monday, 19 November 2012

ASP.NET - How to fix error WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).

Watch this example online:
I have simple form with text field, required field validator and a button.
When I click the button I am getting error WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).



To fix it - add the following into web.config file
  <appSettings>
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
  </appSettings>

Watch Online: