IE8 force render in IE8 mode

Posted on: Wed Nov 11 17:45:26 -0800 2009. Updated on: Wed Nov 11 17:54:26 -0800 2009.
Category: DotNet

To set the mode in which IE8 renders add the following tag to the top of the head section, above the title tag:

< meta http-equiv="X-UA-Compatible" content="IE=edge" />

This will get rid of the option on IE8 to view the page in compatibility mode, so that if your page is optimized for IE8, or newer browsers, users won't screw it up by clicking on compatibility mode.

For more info and to set up in IIS via web.config go here: http://msdn.microsoft.com/en-us/library/cc288325%28VS.85%29.aspx

Comments:

Add a Comment:

simple_captcha.jpg
(human authentication)


Ads

Categories

About

Random foliage

This website is meant to be a reference for ASP Dot Net developers. The entries are a compilation of things I've figured out how to do and that I deem useful to keep of track for future reference. Assumptions: web development with: C Sharp (vb sucks), visual studio 05/08, .net 3.5, meant for programmers. Written by: James Reategui.