C# – How to get user Browser name ( user-agent ) in Asp.net Core

asp.net-coreasp.net-core-mvcc

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

Best Answer

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