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

retrieveing entire user agent

How do i do this WITHOUT the use of javascript...

I need the entire user agent string, for example

"Mozilla/4.0 (compatible; MSIE 6.0; Win32)"

I need to have this in ASP.NET to be added directly to a database field
without the use of java script... how would i retrieve this whole string?
thanks!
Nov 18 '05 #1
3 986
Request.ServerVariables["HTTP_USER_AGENT"] should do it...

Hope this helps,

Mun

"Brian Henry" <[REMOVE-ME]br******@adelphia.net> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
How do i do this WITHOUT the use of javascript...

I need the entire user agent string, for example

"Mozilla/4.0 (compatible; MSIE 6.0; Win32)"

I need to have this in ASP.NET to be added directly to a database field
without the use of java script... how would i retrieve this whole string?
thanks!


Nov 18 '05 #2
Request.ServerVariables("USER_AGENT")
"Brian Henry" <[REMOVE-ME]br******@adelphia.net> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
How do i do this WITHOUT the use of javascript...

I need the entire user agent string, for example

"Mozilla/4.0 (compatible; MSIE 6.0; Win32)"

I need to have this in ASP.NET to be added directly to a database field
without the use of java script... how would i retrieve this whole string?
thanks!

Nov 18 '05 #3
thanks!
"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:Od*************@tk2msftngp13.phx.gbl...
Request.ServerVariables("USER_AGENT")
"Brian Henry" <[REMOVE-ME]br******@adelphia.net> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
How do i do this WITHOUT the use of javascript...

I need the entire user agent string, for example

"Mozilla/4.0 (compatible; MSIE 6.0; Win32)"

I need to have this in ASP.NET to be added directly to a database field
without the use of java script... how would i retrieve this whole string? thanks!


Nov 18 '05 #4

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

Similar topics

7
by: Fuzzyman | last post by:
I'm writing a function that will query the comp.lang.python newsgroup via google groups....... (I haven't got nntp access from work..) I'm using urllib (for the first time)..... and google don't...
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 ...
3
by: Eva | last post by:
hi, can anyone tell me how i can retrieve specific values from a listview? i have created 6 columns that will contain values that are added on an onclick event for a button. These values are...
1
by: Jon Spivey | last post by:
Hi, I'm using webrequest to scrape some urls, works fine, however one url seems to be throwing an error when it doesn't recognise the user agent. So I need to set the user agent to something...
3
by: Raventhorn | last post by:
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...
6
by: Brian Henry | last post by:
is there a way to tell when the database connection is retrieveing data? i saw the connectionstate.fetching enumerated value, but of course it's not implemented yet... is there another way to do...
0
by: =?Utf-8?B?TWlrZTEz?= | last post by:
Sorry for the cross post from dontnet.framework but I'm hoping this may see more activity here. I have written an application to access a web service. The application runs at multiple sites and...
0
by: =?Utf-8?B?TWlrZTEz?= | last post by:
Sorry for the cross post; I'm hoping this will get a response here... I have written an application to access a web service. The application runs at multiple sites and must cross a proxy server....
35
by: RobG | last post by:
Seems developers of mobile applications are pretty much devoted to UA sniffing: <URL: http://wurfl.sourceforge.net/vodafonerant/index.htm > -- Rob
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.