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檔案
新增:
<browser id="IE11Preview" parentID="Mozilla">
<identification>
<userAgent match="Trident/(?'layoutVersion'\d+).*rv:(?'revision'(?'major'\d+)(\.(?'minor'\d+)?))" />
<userAgent nonMatch="MSIE" />
</identification>
<capabilities>
<capability name="browser" value="IE" />
<capability name="layoutEngine" value="Trident" />
<capability name="layoutEngineVersion" value="${layoutVersion}" />
<capability name="isColor" value="true" />
<capability name="screenBitDepth" value="8" />
<capability name="ecmascriptversion" value="3.0" />
<capability name="jscriptversion" value="6.0" />
<capability name="javascript" value="true" />
<capability name="javascriptversion" value="1.5" />
<capability name="w3cdomversion" value="1.0" />
<capability name="ExchangeOmaSupported" value="true" />
<capability name="activexcontrols" value="true" />
<capability name="backgroundsounds" value="true" />
<capability name="cookies" value="true" />
<capability name="frames" value="true" />
<capability name="javaapplets" value="true" />
<capability name="supportsCallback" value="true" />
<capability name="supportsFileUpload" value="true" />
<capability name="supportsMultilineTextBoxDisplay" value="true" />
<capability name="supportsMaintainScrollPositionOnPostback" value="true" />
<capability name="supportsVCard" value="true" />
<capability name="supportsXmlHttp" value="true" />
<capability name="tables" value="true" />
<capability name="supportsAccessKeyAttribute" value="true" />
<capability name="tagwriter" value="System.Web.UI.HtmlTextWriter" />
<capability name="vbscript" value="true" />
<capability name="revmajor" value="${major}" />
<capability name="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
相關文章
- 異常篇——異常處理
- 異常和異常呼叫鏈
- Java 異常(二) 自定義異常Java
- Java checked異常和unchecked異常。Java
- 異常-編譯期異常和執行期異常的區別編譯
- 異常-throws的方式處理異常
- 異常處理與異常函式函式
- jmu-Java-06異常-01-常見異常Java
- hibernate異常之--count查詢異常
- Java 異常表與異常處理原理Java
- restframework 異常處理及自定義異常RESTFramework
- oracle 異常Oracle
- OutOfMemoryError異常Error
- Java異常Java
- 異常(Exception)Exception
- Java 異常Java
- 異常JavaJava
- 【java】異常Java
- java 異常Java
- Flutter 常見異常分析Flutter
- Java 異常(一) 異常概述及其架構Java架構
- MVC使用異常過濾器處理異常MVC過濾器
- 儲存過程——異常捕獲&列印異常資訊儲存過程
- C#規範整理·異常與自定義異常C#
- 異常-try...catch的方式處理異常1
- 異常-try...catch的方式處理異常2
- 異常-自定義異常的實現和測試
- python自定義異常,使用raise引發異常PythonAI
- C#自定義異常 統一異常處理C#
- MySQL定義異常和異常處理詳解MySql
- [jvm]常見的oom異常JVMOOM
- Sanic Exception – 異常Exception
- 自定義異常
- OutOfMemoryException異常解析Exception
- CollectionView 的異常View
- Kotlin 異常Kotlin
- JavaScript_異常JavaScript
- java之異常Java