public void Application_EndRequest(object sender, EventArgs e) { //Send compatibility header if IE 11 is used if (Request.RawUrl.ToLower().Contains(".aspx") && Request.Browser.MajorVersion == 11) { Response.AddHeader("X-UA-Compatible", "IE=EmulateIE8"); //Response.Write("TEST"); } }
<httpProtocol> <customHeaders> <clear /> <add name="X-UA-Compatible" value="IE=EmulateIE8" /> </customHeaders> </httpProtocol>
Hi, You can Press F12 the set edge mode 8
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)