Blog Stats
  • Posts - 170
  • Articles - 4
  • Comments - 54
  • Trackbacks - 7

 

Asp.Net and Firefox browser issues

I am not here to rant about Firefox, but maybe to provide some help for those who like me have troubles with their website running with Firefox.

I don't really know if the culprit is Firefox or .Net. One thing I noticed was that the Developers.ie new design was not working properly with Firefox; all elements all over the place.

It seems that the root of the problem is the Asp.Net tag asp:panel. Firefox is considered by .Net as a downlevel browser. So I am not sure if it's because of Firefox new signature or because Firefox didn't exist at the launch of .Net.

Anyway the solution exist in .Net and seems to be quite undocumented. You have to add a Browsercaps section in your web.config or machine.config and voila it works.

I am sure that it's not perfect for every new browser, but in my opinion, I don't have time to bother with few exotic applications people may use. But of course Firefox compatibility is something important.

You can find all the details and the code here on this very useful page: http://slingfive.com/pages/code/browserCaps/

Also let me know if you have still some issues with Developers.ie and Firefox.

 


Feedback

# re: Asp.Net and Firefox browser issues

Gravatar Awesome, thanks. A couple pages I was having trouble with in Firefox immediately looked better. 3/10/2005 3:12 PM | Brian Scott

# BrowserCaps Update Corrects FireFox Issues

Gravatar I have been bothered for a while with the way my RelationalDropDownLists render in FireFox and some other newer browsers such as Safari. Their width, like regular list controls, always depended on the width of the longest text string in the control... 3/11/2005 5:59 AM | Brian Scott's Blog

# re: Asp.Net and Firefox browser issues

Gravatar Cheers for that. My form now looks the same in Firefox as it does in IE (and hopefully in Safari, which is what my client is running). 5/4/2005 2:59 PM | Steve Waldie

# BrowserCaps Update Corrects FireFox Issues

Gravatar I have been bothered for a while with the way my RelationalDropDownLists render in FireFox and some other newer browsers such as Safari. Their width, like regular list controls, always depended on the width of the longest text string in the control... 6/9/2005 12:10 PM | Brian Scott's Blog

# re: detecting firefox in Asp.Net

Gravatar I want to detect browser using HttpBrowserCapabilities in ASP.NET.

I'm using Firefox and I dont get values I expect e.g. for Firefox : BrowserType = "Netscape" and Version = "5.0" etc..

My User Agent string reads it as Firefox 1.5.0.1, I was expecting BrowserType = "Firefox" and Version = "1.5.0.1" etc..

I spent great deal of time to find out the reason but all in vein.

As of now I'm managing browser detection by parsing User-Agent but it would be great to use std. API's in my code.

Hope to get new insights...

Thanks,
Amit


3/21/2006 8:36 PM | Amit Uchat

Comments have been closed on this topic.
 

 

Copyright © Paschal L