I'm hoping to force IE9 into IE8 compatibility mode on just two pages in my site. I'm using the Kentico CMS though, so I don't have an ASPX page that I can go and modify the HEAD tag of. So I was hoping to add the META tag by using a user control or a web part.
In the web part, I tried the following code:
this.Page.Header.Controls.Add(new LiteralControl(mystring));
However, this typically adds the header as the last tag in the HEAD section. IE compatibility mode requires that this be the first tag in the head section.
Is this possible from the code behind?
Or if someone has specialized knowledge of Kentico, a Kentico specific solution would work too.
I only want this to work on two specific pages in my site though. Not all of them!