ASP.Net Change Browser Mode for IE10

asp.netinternet-explorer-10meta-tags

In IE 10, if you check the developer tools, you can see that there are two modes for the browser:

  • Browser Mode
  • Document Mode

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:

browser mode screen shot

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.

Best Answer

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.

Related Topic