Wednesday, December 25, 2013

solve internet explorer compatibility Document Mode with asp.net pages

To solve the problem to document mode affects on interface of your aspx file design issues you can past the following configuration to your application web.config file to solve internet explorer compatibility document mode to be the last mode and ignore problem ie 7 document mode or other mode issues

<system.webServer>
    <httpProtocol>
      <customHeaders>
        <add name="X-UA-Compatible" value="IE=edge,chrome=1"/>
      </customHeaders>
    </httpProtocol>
</system.webServer>
------------------------------------------------------------

   <httpProtocol>
      <customHeaders>
        <add name="X-UA-Compatible" value="IE=EmulateIE8"/>
      </customHeaders>
    </httpProtocol>

No comments:

Post a Comment