Okay, so I am working on an ASP.Net website (C# code behind) where, for troubleshooting reasons (most of our clients that call for tech support don't know what OS/Browser/BrowserVersion they are using), we want to log a "system profile" so to speak so that we can more easily troubleshoot OS/Browser related issues.
Currently, I am using Request.UserAgent
. The problem with this is that it returns a string that is unhelpful to our support staff:
Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Firefox/24.0
What I want to do is to pull just the OS (Windows NT 6.1, or whatever OS the user has) by itself, without the additional browser information, as I am already segregating other system information as such:
| UserID | UserOS | BrowserType | BrowserName | MajorVersion | MinorVersion | IsBeta |
| 11111 | userOS* | * Firefox24.0 * | * * Firefox * * |* * * * * 24 * * * * |* * * * 0 * * * * | * * 0 * *|
Is it possible just to get the OS by itself?
Bonus points if you know how to get the OS Friendly name from a client machine (i.e. Windows 7 vs Windows NT 6.1), this would save me from having to create a separate database of OS numbers.