Friday, July 13, 2012

How to put meta tag into Orchard theme?

In layout.cshtml file, add following code:
@using (Script.Head())
{
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
}

How to avoid compatibility view and quirk mode in IE?

Add this header into IIS setting, HTTP Response headers
<meta http-equiv="X-UA-Compatible"content="IE=edge">

In IIS 7
image

image

http://weblogs.asp.net/joelvarty/archive/2009/03/23/force-ie7-compatibility-mode-in-ie8-with-iis-settings.aspx