ASP.NET Ignores IE7 Compatibility Mode Tag in Web.config?

Turns out the problem was that I'm using IIS6. IIS6 looks at the section of Web. Config instead of the section (which is used by IIS7, unless it's running in compatibility mode).

To render this meta tag on every page of your site when running IIS6, I believe the best option is to add it to your MasterPage. I ended up adding the following code block to the OnPreRender event of my MasterPage: Page.Header.Controls. AddAt(0, new HtmlMeta { HttpEquiv = "X-UA-Compatible", Content = "IE=EmulateIE7" }); The reason I used AddAt instead of just plain Add is because the X-UA-Compatible meta tag apparently has to be the first thing in the page header in order for it to be respected.

Hope this helps someone in the same boat!

– codeulike Oct 20 at 17:41 @codeulike - Yes, I think that should work fine. It's been a couple of years, and I can't remember now why I chose to add it programmatically. – Chris Shouts Oct 20 at 18:56.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions