Friday, April 25, 2014

IE10 settings

Add the following code in global.asax file

 public void Application_EndRequest(object sender, EventArgs e)
    {
        //Send compatibility header if IE 10 is used
        if (Request.RawUrl.ToLower().Contains(".aspx") && Request.Browser.MajorVersion >= 9)
        {
            Response.AddHeader("X-UA-Compatible", "IE=EmulateIE7");
        }
    }