The error is as follows:
The solution is as follows:
Method One:
Found in Webconfig
<appSettings>
<addkey= "Aspnet:usetaskfriendlysynchronizationcontext" value= "true"/>
<addkey= "Validationsettings:unobtrusivevalidationmode" value= "WebForms"/>
</appSettings>
Delete <addkey= "Validationsettings:unobtrusivevalidationmode" value= "WebForms"/>.
If there are no above two sentences: add in appsettings byte
<addkey= "Validationsettings:unobtrusivevalidationmode" value= "None"/>
Such a sentence will be OK.
Method Two:
1. Create a new scripts folder at the root of the website, add jquery-1.7.2.min.js and jquery-1.7.2.js to it (you can use a different version depending on your needs).
2. Add the Global Application class Global.asax file under the root directory and add the following code to the Application_Start event:
ScriptManager.ScriptResourceMapping.AddDefinition ("jquery", New scriptresourcedefinition
{
Path = "~/scripts/jquery-1.7.2.min.js",
Debugpath= "~/scripts/jquery-1.7.2.js",
Cdnpath = " Http://ajax.microsoft.com/ajax/jQuery/jquery-1.7.2.min.js ",
cdndebugpath= " Http://ajax.microsoft.com/ajax/jQuery/jquery-1.7.2.js "
});
Method Three:
That is because WebForm uses Unobtrusivevalidationmode to verify, so you can set not to use Unobtrusivevalidationmode, as below, set in Page_Load,
protectedvoid Page_Load (object sender, EventArgs e)
{
Unobtrusivevalidationmode =unobtrusivevalidationmode.none;
}
BS because of the different languages different platforms caused by the compatibility problem is much more serious than CS, due to the development of the language itself part of the control's name use has also undergone great changes, these places need our special attention.