首页 > 网页设计 > IE 异常”_doPostBack is undefined”

IE 异常”_doPostBack is undefined”

Web Server可能由于.Net 2 和.Net 4没有正确安装,导致IE10+的浏览器没有被正确识别,这时需要改变Server的浏览器文件:

1. 找到 :

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\Browsers

2. 打开ie.browser文件

添加:

<browserid="IE11Preview"parentID="Mozilla"><identification><userAgentmatch="Trident/(?'layoutVersion'\d+).*rv:(?'revision'(?'major'\d+)(\.(?'minor'\d+)?))"/><userAgentnonMatch="MSIE"/></identification><capabilities><capabilityname="browser"value="IE"/><capabilityname="layoutEngine"value="Trident"/><capabilityname="layoutEngineVersion"value="${layoutVersion}"/><capabilityname="isColor"value="true"/><capabilityname="screenBitDepth"value="8"/><capabilityname="ecmascriptversion"value="3.0"/><capabilityname="jscriptversion"value="6.0"/><capabilityname="javascript"value="true"/><capabilityname="javascriptversion"value="1.5"/><capabilityname="w3cdomversion"value="1.0"/><capabilityname="ExchangeOmaSupported"value="true"/><capabilityname="activexcontrols"value="true"/><capabilityname="backgroundsounds"value="true"/><capabilityname="cookies"value="true"/><capabilityname="frames"value="true"/><capabilityname="javaapplets"value="true"/><capabilityname="supportsCallback"value="true"/><capabilityname="supportsFileUpload"value="true"/><capabilityname="supportsMultilineTextBoxDisplay"value="true"/><capabilityname="supportsMaintainScrollPositionOnPostback"value="true"/><capabilityname="supportsVCard"value="true"/><capabilityname="supportsXmlHttp"value="true"/><capabilityname="tables"value="true"/><capabilityname="supportsAccessKeyAttribute"value="true"/><capabilityname="tagwriter"value="System.Web.UI.HtmlTextWriter"/><capabilityname="vbscript"value="true"/><capabilityname="revmajor"value="${major}"/><capabilityname="revminor"value="${minor}"/></capabilities></browser>

 

关于此问题的其他解决方案链接:

http://stackoverflow.com/questions/15273618/ie10-script5009-dopostback-is-undefined

http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx

http://stackoverflow.com/questions/19783852/asp-net-on-net-4-causing-ie11-throw-dopostback-is-undefined-javascript-error

http://stackoverflow.com/questions/18009636/crosspostback-ajax-controls-and-asp-net-generated-postbacks-work-for-net-4-5/19203518#19203518


本文固定链接: http://www.devba.com/index.php/archives/5434.html | 开发吧

报歉!评论已关闭.