views:

19

answers:

1

Is there a way in ASP.Net to find out the browser and operating system of the user?

Thanks

Jamie

+5  A: 

Yes it's called the UserAgent, see HttpContext.Current.Request.UserAgent IIRC:

http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.useragent.aspx

Note however, this CAN be spoofed and changed.

Lloyd
Thanks I did it this way Request.ServerVariables("HTTP_USER_AGENT")
Jamie Taylor