Recently we run a website with user feedback under IE 11 <asp:LinkButton> Click "__doPostBack" is not defined ", after some Google, finally know the reason: ASP. NET may not be able to identify some of the latest version of the browser, They are also often viewed as low-level browsers. (That is, JavaScript is not supported.) )
see:/HTTP// BLOGS.MSDN.COM/B/SCOTT_HANSELMAN/ARCHIVE/2011/10/28/ASP-NET-IE10-DOPOSTBACK-JAVASCRIPT-FF5.ASPX&NBSP;
I have never been able to obtain the solution I have provided in accordance with this article Resolved, then follow the prompts to try to fix it in a single site. &NBSP;
in the project root directory App _browsers Create a new browser file (. browser) to match the useragent of IE11, so that the. NET Framework recognizes that this is a known browser that can normally output scripts to the client. &NBSP;
Enter the following in the file and save it.
<Browsers> <BrowserID= "IE11"ParentID= "Mozilla"> <Identification> <useragentMatch= "trident\/7.0; RV: (? ') Version ' (? ') Major ' \d+) (\. (? ') Minor ' \d+)?) (?‘ Letters ' \w*)) (? ') Extra ' [^)]*) " /> <useragentNonmatch= "Iemobile" /> </Identification> <Capture> <useragentMatch= "trident/(? ') Layoutversion ' \d+) " /> </Capture> <Capabilities> <Capabilityname= "Browser"value= "IE" /> <Capabilityname= "Layoutengine"value= "Trident" /> <Capabilityname= "Layoutengineversion"value= "${layoutversion}" /> <Capabilityname= "Extra"value= "${extra}" /> <Capabilityname= "IsColor"value= "true" /> <Capabilityname= "Letters"value= "${letters}" /> <Capabilityname= "MajorVersion"value= "${major}" /> <Capabilityname= "MinorVersion"value= "${minor}" /> <Capabilityname= "ScreenBitDepth"value= "8" /> <Capabilityname= "type"value= "Ie${major}" /> <Capabilityname= "Version"value= "${version}" /> </Capabilities> </Browser> <!--mozilla/5.0 (Windows NT 6.3; trident/7.0; rv:11,0) Like Gecko - <BrowserID= "IE110"ParentID= "IE11"> <Identification> <Capabilityname= "MajorVersion"Match= "One" /> </Identification> <Capabilities> <Capabilityname= "Ecmascriptversion"value= "3.0" /> <Capabilityname= "Jscriptversion"value= "5.6" /> <Capabilityname= "JavaScript"value= "true" /> <Capabilityname= "Javascriptversion"value= "1.5" /> <Capabilityname= "Msdomversion"value= "${majorversion}.${minorversion}" /> <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" /> </Capabilities> </Browser> </Browsers>
In addition, open the Web site with VS, open the Package Manager console, enter install-package app_browsersupdate Install the update can also
For example:
Pm> Install-package App_browsersupdate
Installing "App_browsersupdate 1.0".
"App_browsersupdate 1.0" was successfully installed.
Adding "App_browsersupdate 1.0" to MyWebsite.
"App_browsersupdate 1.0" was successfully added to MyWebsite.
ASP. NET project "__doPostBack" Undefined workaround under IE11