473,387 Members | 1,785 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,387 software developers and data experts.

Browsers

Can asp detect what browser the user is running? Any fix should be done for
each one?
Aug 6 '08 #1
3 1271

"Paulo" <er********@terra.com.brwrote in message
news:uq**************@TK2MSFTNGP02.phx.gbl...
Can asp detect what browser the user is running? Any fix should be done
for each one?
Yes. Request.ServerVariables(" HTTP_USER_AGENT") will get the browser
details. No fix is required for ASP, as it is processed on the web server,
and is not affected by the browser.

--
Mike Brind
MVP - ASP/ASP.NET
Aug 6 '08 #2
"Mike Brind [MVP]" <pa*******@hotmail.comwrote:
>
"Paulo" <er********@terra.com.brwrote in message
news:uq**************@TK2MSFTNGP02.phx.gbl...
>Can asp detect what browser the user is running? Any fix should be done
for each one?
>Yes. Request.ServerVariables(" HTTP_USER_AGENT") will get the browser
details. No fix is required for ASP, as it is processed on the web server,
and is not affected by the browser.
But bear in mind that the USER_AGENT string can be forged. There's no
way to be 100% sure of the client browser.

--
Tim Slattery
MS MVP(Shell/User)
Sl********@bls.gov
http://members.cox.net/slatteryt
Aug 6 '08 #3
Gazing into my crystal ball I observed "Paulo" <er********@terra.com.br>
writing in news:uq**************@TK2MSFTNGP02.phx.gbl:
Can asp detect what browser the user is running? Any fix should be
done for each one?

As Mike said, HTTP_USER_AGENT - and if your markup is well formed, you
should not have to do browser sniffing (yuk!).

Please be aware, also, that some UAs will say they are something else,
Opera and IIRC Firefox can both change their string on the fly.
Additionally, what about new browsers and newer versions of current
browsers. That way madness lies.

Here's something I really hate - "You browser is not supported by this
web site. You need at least Internet Explorer 5, or Netscape to view
this site". I am using Opera 9.51 - waaaayyy past IE5 and Netscape -
Paaleeeze!

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Aug 6 '08 #4

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

Similar topics

14
by: Terry A. Haimann | last post by:
I have been working on creating a dynamic web page and have made slow but steady progress. What I have now has an opening page with two drop down boxes. Based on a choice from the first box, the...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
12
by: confused | last post by:
After expressing my interest in expanding my new knowledge of HTML and CSS into the wild realm of JavaScript, I was advised that it is wiser to avoid it, since not all browsers are use it or are...
12
by: code_wrong | last post by:
Hi, as the subject says How many browsers must we support? How many are there exactly? When I run this JavaScript in Firefox and IE6: function init(){ if(document.getElementById) alert("W3C...
6
by: Richie | last post by:
I went through the past six months or so of entries in c.l.javascript, and found a couple where people had expressed opinions about the value of supporting much older versions of Netscape and IE. ...
14
by: Xah Lee | last post by:
is there somewhere i can find the default css for browsers? e.g. what's the usual rendering in terms of css for <p>, <ul> etc. in particular, right now i'm interested in creating a style...
24
by: abracad_1999 | last post by:
I'm told the standards way of referencing page content is document.getElementById() What is the lowest version of each browser type with which this will work? Thank you
4
by: Bart Schelkens | last post by:
Hi, It might be a stupid question. I'm creating a webapplication using vb.net. I was wondering can this webapplication be viewed in other browsers besides Internet Explorer? Or are we limited...
133
by: Alan Silver | last post by:
Hello, Just wondered what range of browsers, versions and OSs people are using to test pages. Also, since I don't have access to a Mac, will I have problems not being able to test on any Mac...
77
by: VK | last post by:
Randy Webb wrote: > VK said the following on 5/2/2006 9:48 AM: > > If you mean "trying to render it" then FF behavior is the same as for > > all other UA's willing to be in use (and not W3C...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...

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.