Tuesday, May 7, 2013

Overriding IE Compatibility mode in ASP.NET code

   We have had to set Compatibility mode for some of our programs to work in IE 8-10.  However, some of our newer programs do not work correctly in Compatibility mode. Adding this code to the .aspx file will force Compatibility mode to OFF for this particular program, thus having the program display correctly while Compatibility Mode is turned on in the browser.

[code]


<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />

[/code]

No comments:

Post a Comment