问题描述
编辑:该网站是Windows Server 2003上,因此无法升级到.NET框架4.5
The site is on Windows Server 2003, hence cannot be upgraded to .NET framework 4.5.
我们的网站是服务于ASP.NET基于.NET 4,当使用IE浏览器11自动停止回传与_doPostBack是未定义错误的工作。它很可能可以固定一些修改浏览器定义文件,我不知道该怎么还。
Our web site is serving ASP.NET ON .NET 4. When using IE 11 the auto postback stopped working with the error "_doPostBack is undefined". It's very likely can be fixed with some modification to the browser definition file, which I don't know how yet.
Microsoft建议特征检测(preferred),或更改浏览器定义文件。 http://msdn.microsoft.com /en-us/library/IE/hh869299%28v=vs.85%29.aspx
Microsoft suggests feature detection (preferred), or changing the browser definition file.http://msdn.microsoft.com/en-us/library/IE/hh869299%28v=vs.85%29.aspx
它看起来像功能的检测手段下探自动回传都在一起。是不是就像重写整个网站?
It looks like feature detection means dropping auto postback all together. Isn't that just like rewriting the whole site?
有人可以介绍如何实现这两种功能检测和浏览器定义文件修改?哪种方式是preferred以及为什么。
Can someone describe how to accomplish both feature detection and browser definition file modification? Which way is preferred and why.
接受的答案解决了这个问题,好像它是唯一的方法,如果你坚持在服务器2003年将是非常非常好的,如果有人能解释功能检测可以在不大规模code的变化来完成。
The accepted answer solved the problem, seems like it's the only way if you are stuck on server 2003. It would be really really nice if someone could explain how feature detection could be done without massive code changes.
推荐答案
看来,在Windows Server 2003需要服务器级解决方案和所有修补程序没有工作,所以它必须手动完成。
It seems that Windows Server 2003 needs a server-wide solution and all hotfixes didn't work, so it must be done manually.
- 编辑C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ CONFIG \浏览器和这个答案添加浏览器定义http://stackoverflow.com/a/19203518/1297563
- 运行C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ aspnet_regbrowsers.exe -i
- 重新启动IIS
这篇关于ASP.NET在.NET 4中引起IE11掷_doPostBack是不确定的JavaScript错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!