Setting the Compatibility Mode of Internet Explorer dynamically in Asp.Net Application.

Posted by vishalneeraj-24503 under ASP.NET category on | Points: 40 | Views : 791
We have to add below Meta Tag directly below inside Head Tag as:-
Note:- Meta Tag will be placed at the top of every ASPX page.

Below is the code for Meta Tag:-
<meta http-equiv = "X-UA-Compatible" content = "IE=9">/

Note:- Above code will change compatibility mode for IE9 version.

Now,if we want to set a various number of compatibility modes in Internet Explorer then we have to specify the range in ascending order as Comma-separated list.Then IE will choose the highest of the specified modes that it can support.
For Example:-
<meta http-equiv="X-UA-Compatible" content="IE=7,8,9">

Comments or Responses

Login to post response