Andrew's Blog

Random Thoughts of an ASP.Net Code Monkey

Handling Webpage Display Issues in Internet Explorer 8.0 using IIS

September 9, 2008 14:32 by Andrew Westgarth

I have been using Internet Explorer 8.0 since the release of Beta 1.  IE 8 requires more standards compliance in the code of web pages for them to display correctly.  Today I was catching up on my RSS Feeds and came across this very useful article - Configuring IIS to work around webpage display issues in Internet Explorer 8.0 and this article discusses the use of adding a HTTP Response Header which then informs IE to run in IE Compatibility mode, therefore rendering the page as it would render in Internet Explorer 7.

The article gives complete details of how to set this up on IIS6 and 7 (integrated and classic mode) and it is very straight forward.  I have implemented it on our live webserver but not on our development server - so we can fix the issues rather than relying on compatibility mode.  Also the default is to set this for your entire server, i.e. any sites, applications and pages served.  However by adding this remove tag into the root web.config of a site you can remove the use of the HTTP Response Header from that particular site and the site will run in true mode (remember to place the httpProtocol element within the system.webServer element in your configuration):

<system.webServer>
  <
httpProtocol>
    <
customHeaders>
      <
remove name="X-UA-Compatible"/>
    </
customHeaders>
  </
httpProtocol>
</
system.webServer>

I must stress I definitely see this as a temporary workaround and only as a backup plan to buy you a little time to sort out the rendering issues!  I would always advocate coding your XHTML and CSS to correct standards!!  Standards Compliance has many added benefits including search engine optimisation and accessibility benefits for users of your sites!!

Categories: ASP.Net | IIS
Actions: E-mail | Permalink | Comments (2) | Comment RSSRSS comment feed

Comments (2) -

phil

I was wondering if the sites you had rendering issues on IE 8 with, rendered properly in Firefox or Opera. You can make IE 6 and 7 render your pages in a more standard compliant mode by adding a DOCTYPE statement (IE 6 CSS support still sucks though). They make IE run in standards mode, rather than quirks mode.

Check out <a href="www.alistapart.com/articles/doctype/">this article</a> on ALA for more info.

phil | March 15 2009 03:18

Andrew Westgarth

Hi Phil,
        I posted the info as a stop gap measure for those in the process of improving their sites.  Personally I never work on sites without doctypes.  Thanks for the info link tho Smile

Andrew Westgarth | March 20 2009 05:03



MCTS

Post calendar

<<  March 2024  >>
MoTuWeThFrSaSu
26272829123
45678910
11121314151617
18192021222324
25262728293031
1234567

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2024