how do I detect user operating system

前端 未结 11 918
难免孤独
难免孤独 2020-12-01 03:58

I have the following code to obtain user details:

HttpBrowserCapabilities bc = HttpContext.Current.Request.Browser;
string UserAgent = HttpContext.Current.Re         


        
11条回答
  •  再見小時候
    2020-12-01 04:33

    There's no accurate way of doing so as all the information you get from user request's headers which can easily be changed by user and can contain just anything.

    If you're OK with reading probably inaccurate information then you may want to check this SO answer to similar question

提交回复
热议问题