How can I get browser information for client in asp.net core 3.0.1, I tried to use this code, but, it return me the full list of user's browsers, but, I need the browser that user using it.
Code that I used:
var userAgent = Request.Headers["User-Agent"].ToString();
I tried also this code, but, it gives me error:
UserAgent.UserAgent ua = new UserAgent.UserAgent(userAgent);
I searched in many links, but, I didn't find what I need, and, this is some of the link that I searched in:
- https://code.msdn.microsoft.com/How-to-get-OS-and-browser-c007dbf7
- How to get user Browser name ( user-agent ) in Asp.net Core?
- https://learn.microsoft.com/en-us/dotnet/api/system.web.httprequest.useragent?view=netframework-4.8
- https://www.c-sharpcorner.com/forums/how-to-get-current-browser-details-in-asp-net-core
Is there any way to get the browser name and version that client run the application from it using Asp.Net Core 3.0.1?