Ik gebruik de flot plotbibliotheek. Het lijkt goed te werken in IE8 en IE9, maar het probleem komt in de IE9 Compatibility View - het geeft geen van de grafieken weer. Ik vermoed dat dit komt door het HTML5 canvas
object dat het zwaar gebruikt, maar ik zou het mis hebben. Ik heb geprobeerd het volgende te doen:
Add: <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
to my HTML <head></head>
tag. I even tried IE=8
and IE=9
and that did not help either. My tag look like this:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
...
</head>
<body>
...
</body>
</html>
Because I was still seeing the problem, I added the following to my Global.asax.cs file:
void Application_End(object sender, EventArgs e)
{
// Code that runs on application shutdown
Response.Headers.Add("X-UA-Compatible", "IE=Edge");
}
Ik sta nog steeds voor het probleem. De fout die ik krijg is dit:
HTML1202: http://intranetdomain/SampleProj/Default.aspx is running in Compatibility View because 'Display intranet sites in Compatibility View' is checked.
Default.aspx
HTML1113: Document mode restart from IE7 Standards to IE9 Standards
Default.aspx
Is er hoe dan ook om dit te doen?
EDIT: Checking my response headers, adding that line in Global.asax.cs
did not add them to my headers. I wonder why.
Response Headers:
Key Value
Response HTTP/1.1 200 OK
Cache-Control private
Content-Type text/html; charset=utf-8
Server Microsoft-IIS/7.5
X-AspNet-Version 4.0.30319
X-Powered-By ASP.NET
Date Thu, 27 Oct 2011 20:39:55 GMT
Content-Length 29088
EDIT 2: Blijkbaar was Application_End
de verkeerde gebeurtenis. In plaats daarvan injecteerde dit het element in de kop:
void Application_BeginRequest(object sender, EventArgs e)
{
Response.Headers.Add("X-UA-Compatible", "IE=Edge");
}
Maar het probleem zelf blijft aanhouden.