WebResource.axd not working with Internet Explorer 11

后端 未结 2 1853
渐次进展
渐次进展 2021-01-03 07:02

We\'re testing our websites for the new Windows 8.1 IE 11 browsers classic and metro.
There is a Javascript file embedded in WebResource.axd.

2条回答
  •  温柔的废话
    2021-01-03 07:51

    Richard's workaround above:

    Setting Page.ClientTarget = "uplevel" in the Page_Init event.

    is the correct one; you need to disable the use of User-Agent sniffing to get ASPNET to send IE11 the proper script blocks. http://msdn.microsoft.com/en-us/library/system.web.ui.page.clienttarget.aspx

    Unfortunately, it turns out that the patch they took to enable IE10 doesn't work properly with IE11 (because the IE team significantly changed the IE user agent string, removing the MSIE token by default). So, another patch for ASP.NET was shipped in June 2013. See https://stackoverflow.com/a/18651133/126229

提交回复
热议问题