Flot çizim kütüphanesini kullanıyorum. IE8 ve IE9'da iyi çalışıyor gibi görünüyor, ancak sorun IE9 Uyumluluk Görünümü'nde olduğunda ortaya çıkıyor - grafiklerin hiçbirini oluşturmuyor. Bunun çok sık kullandığı HTML5 tuval
nesnesi olduğundan şüpheleniyorum ama yanılıyor olabilirim. Aşağıdakileri yapmayı denedim:
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");
}
Hala sorunla karşı karşıyayım. Benim aldığım hata şudur:
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
Bu işe devam etmek için zaten var mı?
EDIT: Checking my response headers, adding that line in Global.asax.cs
did not add them to my headers. I wonder why.
Yanıt Başlıkları:
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: Görünüşe göre, Application_End
yanlış olaydı. Bunun yerine, bunu yapmak, başlığı başlık içine enjekte etti:
void Application_BeginRequest(object sender, EventArgs e)
{
Response.Headers.Add("X-UA-Compatible", "IE=Edge");
}
Ama problem hala devam ediyor.