posted 12/29/2009 by Samir NIGAM
Introduction
In my last blogs, I had demonstrated how one could emulate IE7 in IE8 demonstrated by adding a Http Header in IIS or by adding a Meta tag within the head tag on all the pages of a web application. Now we'll learn how you can emulate IE7 in by defining a Custom Header in Web.Config file.
Method
Site administrators can configure their sites to default to a specific document compatibility mode by defining a Custom Header for the site. The specific process depends on your Web server. For example, by defining a Custom Header in Web.Config file in following manner enables IIS to define a Custom Header that automatically renders all pages in IE7 mode.
Conclusion
If you specify a default document compatibility mode through your Web server, you can override that setting by specifying a different document compatibility mode in a specific Web page. The mode specified within the Web page takes precedence over the mode specified by the server.
Please let me kow if you've any query.
What kind of email newsletter would you prefer to receive from CodeAsp.Net?18