Fabrice's weblog

Tools and Source

News

My .NET Toolbox
An error occured. See the script errors signaled by your web browser.
No tools selected yet
.NET tools by SharpToolbox.com

Read sample chapters or buy LINQ in Action now!
Our LINQ book is also available on AMAZON

.NET jobs

Emplois .NET

transatlantys hot news

Contact

Me

Others

Selected content

Let ASP.NET know you have a powerful web browser like Firefox or Opera

By default ASP.NET 1.x downgrades its reponses to lower-level HTML with web browsers other than Internet Explorer 5+.
The result is that browsers like Mozilla, Firefox, Opera or Safari get a different HTML than IE 6, while they could handle it. As a developer this is a nightmare because when you develop a page with IE, and then test it with Firefox, it looks all broken and you start cursing the Mozilla team and the consortiums in charge of the standards. You end up having to do the work twice, once for IE, once for the other browsers.

But wait! The solution is simple and you can quickly get rid of all those problems!
ASP.NET relies on so called "browser caps" to know what HTML to render. The good news is that you can change these browser caps simply using your web.config file.

Rob Eberhardt did a great work and provides us with ready-to-use browser caps that you can integrate into your configuration files.

Posted: Jan 04 2005, 01:45 PM by Fabrice Marguerie | with 2 comment(s)
Filed under:

Comments

TrackBack said:

# January 4, 2005 5:17 AM

Charles Chen said:

I've used this one in the past with a project that I worked on:

http://www.hunterstone.com/browsercaps/browsercaps.xml

It seems like it's a bit more concise since the last time I saw it.
# January 4, 2005 8:33 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)