Set or Override Browser Mode and Document mode IE

There are two ways we can achieve it

1. Using meta tag inside <head> tag

    <meta http-equiv="X-UA-Compatiable" content="IE=edge">

2. From Web.Config
 
    <system.webServer>
   <httpProtocol>
     <customHeaders>
       <add name="X-UA-Compatible" value="IE=edge"/>
     </customHeaders>
   </httpProtocol>
 </system.webServer>
Note: Above give code is for IE9

Comments

Popular posts from this blog

SQL Interview Questions and Answers

Generic Interface and Factory Pattern in C#

How to get device info IMEI programmatically in xamarin android