473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

User Agents and Menus

I am having problems that I also saw people having in the ASP.NET forums with
menus and people coming to a site with weird user agent values. Is there a
way to access the user agent before the user hits the site so we can
determine which ones are screwing up our site? Also, is there a list of user
agents available for different browsers?
Nov 19 '05 #1
3 1336
> I am having problems that I also saw people having in the ASP.NET forums
with
menus and people coming to a site with weird user agent values. Is there a
way to access the user agent before the user hits the site so we can
determine which ones are screwing up our site? Also, is there a list of user agents available for different browsers?


It's not the user agent that's screwing up your site, it's your site's HTML.
;o)

You can, of course, get the user agent string, but these aren't always
accurate and browser detection is rarely the best (ie, most efficient) way
towards solving your issues. Can you explain a bit more what you mean by
'menus' and what, exactly, is breaking?

-Darrel
Nov 19 '05 #2
I have a site that is released using ASP.NET 2.0 Beta 2 (www.bridgestar.org).
I have users that are complaining that they cannot access the site and get an
error in MS's code (Menu.OnPreRender). I have isolated the problem down to a
problem with setting the colors and fonts of the menu's various display
properties. I also have narrowed it down pretty much to people who must be
coming in with odd User Agent settings as I have tried using a User Agent
switcher extention tool in FireFox to try and repro the bug. So...I am hoping
to trap the error for now and find out what User Agent strings are being
passed when the error occurs so I can send it to MS and they can fix this bad
boy.

"darrel" wrote:
I am having problems that I also saw people having in the ASP.NET forums

with
menus and people coming to a site with weird user agent values. Is there a
way to access the user agent before the user hits the site so we can
determine which ones are screwing up our site? Also, is there a list of

user
agents available for different browsers?


It's not the user agent that's screwing up your site, it's your site's HTML.
;o)

You can, of course, get the user agent string, but these aren't always
accurate and browser detection is rarely the best (ie, most efficient) way
towards solving your issues. Can you explain a bit more what you mean by
'menus' and what, exactly, is breaking?

-Darrel

Nov 19 '05 #3
> I have a site that is released using ASP.NET 2.0 Beta 2
(www.bridgestar.org).
I have users that are complaining that they cannot access the site and get an error in MS's code (Menu.OnPreRender).


I assume that by 'menu' you mean some sort of .net control that creates a
menu on the site. I wouldn't be surprised one bit that this control is
making invalid markup (not unlike a lot of default controls in .net).

The problem is most likely the HTML and/or the Javascript that .net is
spitting out and it's not browser agnostic.

There probably isn't a 'fix' other than to not use the default control as-is
in .net (which is usually a good idea anyways).

If my 'menu' you mean a fly-out javascript menu, there are only two products
I can recomment that fulfil usability and accessibility guidelines:

http://www.projectseven.com
http://www.udm4.com

Every other menu system/control I've looked at has some flaws in some way or
another.

-Darrel
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Erik | last post by:
I want to write a Server Side PHP program that generates a HTML page client side. How would I get at the clients' screen size, before serving the generated page ? Would it be a two-step process:...
60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
0
by: Conference Secretary | last post by:
CALL FOR PAPERS International Conference on Intelligent Agents, Web Technologies and Internet Commerce http://www.ise.canberra.edu.au/conferences/iawtic05/ Jointly with International...
1
by: hikums | last post by:
On a AIX 5.2, DB2 UDB V8.2, the dbm snapshot is as below. There are around 50 applications at any point of time, intra-parallel turned on, oltp and reporting queries are run on the server. 8 Gigs...
2
by: Alex Bibiano | last post by:
I use this code to get the current user in my Windows application: AppDomain.CurrentDomain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal); WindowsIdentity wi = WindowsIdentity.GetCurrent();...
82
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a)...
4
by: Steven Simpson | last post by:
Stefan Ram wrote (in "More than one language in a page"): Is this a new trend of user-agent writers (Microformats, and now Google) staking claims on the @class namespace? I'm surely not the only...
9
by: happyse27 | last post by:
Hi All, In perl script(item b below) where we check if html registration form are filled in properly without blank with the necessary fields, how to prompt users that the field are incomplete...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.