ASP.NET on .NET 4 causing IE11 throw _doPostBack is undefined javascript error

↘锁芯ラ 提交于 2019-12-03 03:19:51
Jiayun Zhou

It seems that Windows Server 2003 needs a server-wide solution and all hotfixes didn't work, so it must be done manually.

  1. Edit C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config\Browsers and add the browser definition in this answer https://stackoverflow.com/a/19203518/1297563
  2. Run c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regbrowsers.exe -i
  3. Restart IIS

Upgrade your .NET Framework to 4.5

Once installed run the command:

aspnet_regbrowsers -i

@FrogCoder

I came across this problem yesterday - and the patch 2836939 solved my issue. Windows 8.1 IE11.

Please consider the following from the Hotfix URL:

"Note If you run the ASP.NET browser registration tool (Aspnet_regbrowsers.exe) after you install the update, the old behavior will return."

http://support.microsoft.com/kb/2836939

Hope this helps.

Place below script in your master page will fix it. i had a similar issue and got fixed.

<script runat="server">

protected override void OnInit(EventArgs e)
{
Page.ClientTarget = "uplevel";
base.OnInit(e);

}
</script> 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!