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.
None
0 Points
2 Posts
adding a ScriptResourceMapping named jquery(case-sensitive).
Dec 15, 2013 07:17 AM|msoleimanpour|LINK
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?
All-Star
31362 Points
7055 Posts
Re: adding a ScriptResourceMapping named jquery(case-sensitive).
Dec 15, 2013 08:55 AM|kaushalparik27|LINK
You need a web.config key to enable the pre 4.5 validation mode
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:
hope it helps./.
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you