473,799 Members | 3,149 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1356
> 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.OnPreRend er). 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.OnPreRend er).


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
5751
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: first let the client execute a piece of JavaScript to generate Height and Width, and then send those values to the PHP server (FORM, PUT) ? Or can it be done in only one PHP program ?
60
7310
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 The detector requires javascript 1.0 to work. This translates to netscape 2.0 and IE 3.0 (although maybe IE 2.0 also works with it)
0
2182
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 Conference on Computational Intelligence for Modelling, Control and Automation
1
2409
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 of RAM, what parameters are recommended for maxagents,max_coordagents,maxcagents,maxconnections? If you require other information, I'd be glad to post. Thanks for the help.
2
10469
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(); Console.WriteLine(wi.Name); now, I want get the windows groups this users belong. How can I do it? If I have to search in the ActiveDirectory, how can I know if the user is in
82
10071
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) html b) perl script (print and inserting into database) Cheers... Andrew
4
3018
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 one disturbed by this. Somehow, an author publishing on the web, with no control over which user agents will access his page, has to avoid clashes with the union of all names deemed special by all those user agents, now and in the future? I...
9
4248
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 or blank and then go back to main page(item a below user registration html page) always, something like goggle or msn login page function... Thanks and Best Rgds, Andrew a) script called from user registration html...
0
9687
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10484
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10228
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7565
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.