WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for jQuery排除
法1
AspNet.ScriptManager.jQuery.DLL下載下載完後再專案的參考機入此DLL即可
法2
不推薦,會有功能失效
Web.config
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
<add key="ValidationSettings:UnobtrusiveValidationMode" value="WebForms" />
</appSettings>
刪除紅色字體那行
若無此行可增加以下內容
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>
留言
張貼留言