标签:
方法一:
在webconfig中找到
<appSettings>
<add key=" aspnet:UseTaskFriendlySynchronizationContext" value="true" />
<add key="ValidationSettings:UnobtrusiveValidationMode" value="WebForms" />
</appSettings>
删除<add key="ValidationSettings:UnobtrusiveValidationMode" value="WebForms" />即可。
如果没有上面两句的话:在appSettings字节中添加
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
然后刷新页面oK成功
标签:
原文地址:http://www.cnblogs.com/KTblog/p/4340458.html