2
Answers

Make IE go to compatibilitymode from code

Mats A

Mats A

11y
1.1k
1

How do I force IE to run in compatibilitymode?

My site does not work in IE10 due to a bug (.NET 4 vs IE10), see link below if you are interested.
This can by fixed by a patch on the server, but the webhotel that is hosting my site is in no hurry to do it.
And I know the logical step would be to give them the finger and move on, unfortenatly I cannot do that and
I am stuck with what I got.

So: it does not run on IE10, but it runs in lower versions, chrome and so on. How/can I force IE into compatibilitymode
from the HTML/ASP.NET? I have tried using: <meta http-equiv="x-ua-compatible" content="IE-edge"/> in the headersection, and
tried changing the web.config file. Nothing happens.

Has anyone done this, or anything similar and got it working?

 

http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspxv

Answers (2)