How to disable compatible view mode at the web application level

The Issue

As many companies had applied a global policy to enable the compatible view in IE for all intranet sites on all PCs. So that the old web application can be display properly.

Compatible view mode had been enabled in IE

However the new web application, especially using Asp.Net MVC and Bootstrap is not working fine with compatible view mode and definitely, we can’t ask our infrastructure to changes the policy of the company to disable the compatible view mode in app IE of all PCs. So how to disable the compatible view mode at the application level?

The website is not displayed property in the compatible view mode.

The Solution

Lucky to us is from IE11 Microsoft had supported to disable the compatible view mode by using metadata in the header of the page. So we can disable the compatible view mode in the application level by add below tag into the shared view of the application by default the shared view will be _Layout.cshtml in Views/Shared folder of the MVC application.

The website will display property in the compatible view mode.

For more information, you can find in here

Leave a Reply

Your email address will not be published. Required fields are marked *