BrowserCap for FireFox

Posted by Kirby Turner on May 17, 2005
Something I didn’t realize until today is that ASP.NET does not generate proper HTML 4.0-compliant code for certain modern, non-Microsoft browsers such as FireFox and Safari. For instance setting the width property of an will not render the style attribute needed to set the control width in FireFox. The problem is easily fixed by including the section in your web.config or machine.config with the appropriate user agent pattern for the particular browser or browsers.

The guys at 4GuysFromRolla.com have a nice article explaining this in more details. The article also includes a sample section that you can copy
paste into your .config file that supports GECKO (Netscape 6.0+, Mozilla/Firefox, …) and AppleWebKit (Safari, …) based browsers.

Posted in uncategorized. Tagged in .