Rohan

Rohan

  • NA
  • 1.4k
  • 117.8k

How to detect browser Name.

May 12 2022 9:39 AM

Hello everyone Please let me know how to get the browser name. I have a login from the Edge browser so how to save Edge in the database. I have used this (userLoginHistory.Browser = Request.Headers["User-Agent"].FirstOrDefault();)

 

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36 - This is save in table 


Answers (5)