Thursday, July 5, 2012

Prevent site from opening in IE8/9 compatibility mode when user has website in intranet zone.


Introduction
              
 In this article i will show you how to override the compatibilty mode in intranet.

Just you have to add following in web.config file.

<system.webServer>
<httpProtocol>
  <customHeaders>
    <clear />
    <add name="X-UA-Compatible" value="IE=edge" />
  </customHeaders>
</httpProtocol>
........................
....................

</system.webServer>

you have to just add the <httpProtocol>....</httpProtocol> tag as mentioned above  between <system.webserver> tage in web.config file

0 comments:

Post a Comment