Question: WebForms UnobtrusiveValidationMode requires "jquery" ScriptResourceMapping, jquery. unobtrusive
Niu Yu is coming to an end, but I encountered such a problem during the integration process. At that time, I checked my code and there was no problem, in addition, no errors or message reminders were encountered during the solution generation process, so I was blinded by this problem. Later, I checked the information on the Internet to solve this problem.
1. Cause
I checked a lot of answers on the Internet. Most of the answers are: In BS, the control name is changed, and many BS controls have some compatibility problems with CS projects. this problem!
2. Solution
In webconfig, find
<Deleetask>
<Add key = "aspnet: UseTaskFriendlySynchronizationContext" value = "true"/>
<Addkey = "ValidationSettings: UnobtrusiveValidationMode" value = "WebForms"/>
</AppSettings>
Delete <addkey = "ValidationSettings: UnobtrusiveValidationMode" value = "WebForms"/>.
Without the preceding two sentences: add the parameter in the ettings byte.
<Addkey = "ValidationSettings: UnobtrusiveValidationMode" value = "None"/>
3. Understanding feelings
When encountering unknown problems, do not complain or be flustered. The most important thing is to use the knowledge you have learned to compile the knowledge network and trust yourself, when I encountered this problem, I did not start to check it, but I found out that you are not alone!