We’ve all seen how websites can look really terrible through the eyes of IE8. But there is hope for the short term, if your ASP.Net website suffers from this malady. You can make an entry in your web.config, so that even if a customer is using IE8 to view your site, it will be forced to view it through ‘Compatibility View’, which actually uses IE7 to view the site.
Just enter this code in the configuration section of your web.config:
<system.webServer> <httpProtocol> <customHeaders> <clear /> <add name="X-UA-Compatible" value="IE=EmulateIE7" /> </customHeaders> </httpProtocol> </system.webServer>
All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF