<meta content="IE=8" equiv="X-UA-Compatible">
Please remember: this must be the first item in the header.
However, the "styleSheetTheme" setting of an ASP .NET webiste always places its CSS file in the header at the top before anything else. This makes the meta tag fail completely.
To move the "X-UA-Compatible" before it, you would have to do the following:
- Make the meta tag accessible from the server code by giving it an ID and add the "runat" attribute:
<meta id="FirstCtrlID" content="IE=8" runat="server" equiv="X-UA-Compatible">
- Add the following pre-render event handler to your page (or master page):
protected void Page_PreRender(object sender, EventArgs e)
Control MyFirstCtrl = Page.Header.FindControl("FirstCtrlID");