If you’re writing .NET applications, when you test them in FireFox, they may look totally different than in IE. The first thing you probably notice is that input boxes are all the default width. Anything that you’ve resized in the designer doesn’t display in FireFox. If you use the Visual Studio designer to resize controls, when you look at the source, you’ll see that this is all done with the style attribute and not using width/height attributes.

The reason that this is happening it turns out is that .NET doesn’t recognize FireFox as a modern browser and is “dumbing down” the html output. It’s removing all the style attributes because it doesn’t know if FireFox can handle them.

Luckily, this is one of those problems that has a quick fix, as it turns out. All you have to do is tell .NET how to identify FireFox. In the old days of classic ASP, there was a file on the server called browscap.ini that contained all of this information. For .NET apps, there’s a couple of places to configure the info. machine.config has settings using for the entire server. If you don’t have access to this file, you can even put it in your web.config file just for your app.

Today is really your lucky day because Rob Eberhardt has already created the browser identification code and you can just copy/paste it. The code is found at his site [url]http://slingfive.com/pages/code/browserCaps/[/url]

Rob’s page explains it all but in brief, just download his BrowseCap code and copy/paste it in your web.config file just above the </system.web> tag.