In IE 10, if you check the developer tools, you can see that there are two modes for the browser:
By adding the tag below:
<meta http-equiv="X-UA-Compatible" content="IE=9" />
One is able to force IE10 to render the page in IE9 document standards.
Is there a way that ASP.Net can force the browser to change the Browser Mode to use IE10 Compatibility View or any version lower?
I have an application that seems to break down with IE10, but trying the app in IE10 Compatibility and IE lower versions Browser mode, the application works perfectly fine.
Appreciate any help.
Update:
Posted screenshot of the browser mode and document mode.
If I added the meta tags above, I get:
Notice that the Document Mode is in IE9 mode as specified in the meta tag.
But my application needs to change the Browser Mode (IE10) to something like IE10 Compatibility Mode or lower. Using the current IE10 mode, breaks the application.
You can force the browser to use the most recent by:
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
If you want to use lower versions, just change the number:
<meta http-equiv="X-UA-Compatible" content="IE=7" />
Will render for IE 7. But you see to know that from the example you posted. Not sure what else you are asking though.
I have an application that seems to break down with IE10, but trying the app in IE10 Compatibility > and IE lower versions Browser mode, the application works perfectly fine.
I am having a similar issue with my app not behaving correctly on IE10. I discovered that my issue is related to the ASP.NET browser definition files not recognizing the latest IE:
[Source: http://support.microsoft.com/kb/2600100 ]
By default, ASP.NET uses sniffing technology for the user agent string to detect browsers. The browser definition files cover a certain range of browser versions. However, as the version numbers increase, ASP.NET might not recognize new versions of a browser by using the user agent string. In this case, ASP.NET might handle these versions as an unknown browser.
.NET 2.0 SP and .NET 3.5 SP1: http://support.microsoft.com/kb/2600100
.NET 4.0: http://support.microsoft.com/kb/2600088
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With