Search code examples
c#asp.net-coreasp.net-core-mvc

How to get user Browser name ( user-agent ) in Asp.net Core?


Can you please let me know how to get the browser's name that the client is using in MVC 6, ASP.NET 5?


Solution

  • I think this was an easy one. Got the answer in Request.Headers["User-Agent"].ToString()