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 by Kirby Turner | 17-May-2005 11:40 AM | comments (1)


I've been studying this issue and I'ts quite complicated. I've not noticied that browsercap tag into web.config not do anything in javascritscript blocks. they appear as they want ans also in different way they appear in In ternet explorer. I'll find out ... finally.

Anyway good article.

Visit http://projectesweb.com (web from Barcelona)

posted by Fressx | May 4 08:44 AM

Add Your Comment

Comment:
(No HTML)

Name:
E-mail/Web site:
Your e-mail/web site will not be published on this site. It is optional and will only be used by me should I need to contact you directly.
 
By checking this option, this site will remember your name and e-mail/web site on future visits. Uncheck this option to have the site not remember who you are on future visits.
 
Enter the code shown above:
Copyright © 1999-2008 Kirby Turner.
Site software written by White Peak Software Inc, a provider of custom software and software development coaching.