How to set default compatibility modes in config file?

 Posted by vishalneeraj-24503 on 8/1/2014 | Category: ASP.NET Interview questions | Views: 356 | Points: 40
Answer:

If we are running a .NET site, then we can specify the default Compatilbility View for our entire site in the CustomHeaders section of our Web.config file as follows:-
<customHeaders>

<clear />
<add name="X-UA-Compatible" value="IE=9" />
</customHeaders>

if we have access to IIS,then we can specify the Compatibility View meta tag using a custom HTTP response header.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response