Mats A

Mats A

  • NA
  • 59
  • 28.8k

Make IE go to compatibilitymode from code

Jun 18 2013 12:32 PM

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)