Question: WebForms UnobtrusiveValidationMode requires "jquery" ScriptResourceMapping, jquery. unobtrusive

Source: Internet
Author: User

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!


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.