Click to See Complete Forum and Search --> : Browser and OS detection in Asp.Net (C#)


fischermx
02-04-2007, 10:32 PM
I've been looking for hours a script or function that gives me a detail description of the Browser and OS using the user agent.

So far, I've found one very good in PHP, but nothing for Asp.Net(C#).
The only few I found in C# where merely a couple of if's to basic detect, which I already did already.

Do you know one ?

Ribeyed
02-06-2007, 03:35 AM
Hi,
you can get them details from the Server Variables.

http://www.codeproject.com/asp/request_server_variables.asp

felgall
02-06-2007, 03:37 AM
The useragent is a free format user configurable field. It can contain anything at all. Most times it contains info to identify the browser as MSIE regardless of what browser it is.