Delphi Clinic C++Builder Gate Training & Consultancy Delphi Notes Weblog Dr.Bob's Webshop
Bob Swart (aka Drs.Bob) Dr.Bob's Delphi Clinics Dr.Bob's Delphi Courseware Manuals
View Bob Swart's profile on LinkedIn Drs.Bob's Delphi Notes
These are the voyages using Delphi Enterprise (and Architect). Its mission: to explore strange, new worlds. To design and build new applications. To boldly go...
Title:

ASP.NET browserCaps for FireFox and Netscape 7

Author: Bob Swart
Posted: 8/22/2005 10:50:00 PM (GMT+1)
Content:

When building and deploying ASP.NET applications, you may encounter - like me - that they works just fine using Internet Explorer, but may not look just as fine in other browsers. Including some of the modern browsers, like Mozilla FireFox, Netscape 7, etc.

The problem is that ASP.NET uses information from the machine.config file to detect the browser type, which is then available in Request.Browser (but also determines the expected capabilities of these browser types). Since the default machine.config of ASP.NET 1.1 is a bit older than say FireFox, this means that some modern browsers (and/or their capabilities) may not be recognised correctly.

The solution consists us adding an updated browserCap section to the machine.config file (if you can access that file - you may have to ask your ISP), or in your web.config file (for a project-by-project basis).

I've found a great place of information with a recent and good working browserCaps section at http://slingfive.com/pages/code/browserCaps/ with the actual browserCaps entry from http://slingfive.com/pages/code/browserCaps/browserCaps_spaces.txt being used by this Weblog application. I can recommend it to anyone, as I'm no longer getting problems reported from FireFox and Netscape users!

Back  


3 Comments

AuthorPostedComments
Burhanmt05/08/31 00:45:46Thanks ! it is useful feature for firefox and other browser users.
Wyatt Wong05/11/25 09:44:13if you *can* access that file - xxxx should be changed to if you *can't* access that file - xxxx"
Igor Skomorokh06/05/25 20:15:03Thanks a lot Dr.Bod. I am really happy to read this news because I am using Firefox as mi primary browser and I do have this problem. Thank you for your help in fixing that!


New Comment (max. 2048 characters, no HTML):

Name:
Comment:



This webpage © 2005-2019 by Bob Swart (aka Dr.Bob - www.drbob42.com). All Rights Reserved.