why is IE11 choosing render mode: "IE7 Strict" and how to i make it use current browser?
asp.net, browser, html, internet-explorer
Solution
You can use `X-UA-Compatible to IE=edge` to make use of latest IE version to render
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
check What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do? for more information
Can be configured in web.config for all the pages, also it will make sure that intranet website will render it accordingly. I was facing the problem with internal website, even after adding a META tag. Hence I updated it in web.config
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-UA-Compatible" value="IE=edge" />
</customHeaders>
</httpProtocol>
</system.webServer>
Problem
A website that was deployed has crashed, and it is because it is rendering it in "IE7 Strict". This test was determined by the following code snippet: ``` var vMode = document.documentMode; var rMode = 'IE5 Quirks Mode'; if(vMode == 8){ rMode = 'IE8 Standards Mode'; } else if(vMode == 7){ rMode = 'IE7 Strict Mode'; } alert('Rendering in: ' + rMode); ``` This is an ASP Web application. I was thinking that if it were opened with IE11, it would render it in IE11. It seems that is definitely NOT the case. How would i resolve this? Do i have to add something to the config file of my WebApplication, or is an IE module that needs to be removed? Are there meta tags i need to append to the MasterPage Header?