0

Corporate users of our ASP.Net web applications are switching from IE8-9 to IE10-11. Our older applications look weird in IE10 and 11 unless the users switch the browser mode for example to "IE10 compatibility view" (not sure about exact english wording, in german it is "IE10-Kompatibilitätsansicht").

It is not realistic to get all the users to switch the browser mode manually, and it is currently not possible for us to migrate the older web applications to the newest ASP.Net version, so I am looking for possibilities to force the browsers to activate the compatibility mode via specific contents of the web pages.

I have been experimenting with various combinations of and values and placements. That way I can force the value of IE's document mode, but not the browser mode.

Question: ist it possible at all to "persuade" the browser to set a specific browser mode according to some specific contents of the web page, or some web.config settings?

Thanks in advance for any advice.

Erich Horak
  • 380
  • 3
  • 10
  • @CodeCaster, the question is about forcing compat mode *on*, not off. – Jukka K. Korpela Dec 21 '13 at 17:32
  • @Jukka yeah, and the second answer shows how to enforce a specific IE version. Duplicates don't only go by title. – CodeCaster Dec 21 '13 at 17:37
  • @CodeCaster and Jukka K. Korpela: I read and tested both "duplicates" before, they suggest different values for X-UA-Compatible, which allows to manipulate the document mode, but not the browser mode. – Erich Horak Dec 21 '13 at 17:48
  • The “document mode” is what you need. The “browser mode” only affects the User-Agent string that IE sends to a server. – Jukka K. Korpela Dec 21 '13 at 17:49
  • too bad it looks weird (e. g. widths of textboxes seem not to be respected) with all document mode values when browser mode is ie10... – Erich Horak Dec 21 '13 at 17:56

0 Answers0