'WebForm_DoPostBackWithOptions' is undefined in IE11 Preview

后端 未结 9 1707
心在旅途
心在旅途 2020-11-27 15:32

IE11 is coming. I just installed the developer preview version. However, if I run some of my web application and I got the error WebForm_DoPostBackWithOptions

9条回答
  •  长情又很酷
    2020-11-27 16:29

    I had a similar issue with Internet Explorer 11 not being detected correctly by .NET 4.0 framework. Here's how I worked around the problem:

    Installing the suggested patches didn't do the trick. After digging deeper into the issue, I found that although the http://support.microsoft.com/kb/2836939 patch is installed on the server, the browser is still recognized as Mozilla with version 0.0 on the server. After additional research I found that if you have any .browser file in your site's app_browsers folder, the version detected on the server is wrong, namely Mozilla 0.0.

    To work around the issue I created a custom .browser file in the app_browsers directory with the following content:

    
      
        
          
          
        
        
          
        
        
          
          
          
          
          
          
          
          
          
          
          
        
      
    
      
      
        
          
        
    
        
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          
        
      
    
    

    A similar approach is suggested in the following article: doPostback failing in IE 11+ Windows 8.1

    I would like to clarify that the issue is happening only with .NET 4.0. With .NET 4.5, the browser and its version are detected correctly.

提交回复
热议问题