I am using the code below:
Request.Headers["User-Agent"].ToString()
But it's giving me all browser details despite I only want the browser name.
Can anyone please help me with this problem?
I am using the code below:
Request.Headers["User-Agent"].ToString()
But it's giving me all browser details despite I only want the browser name.
Can anyone please help me with this problem?
Copyright © 2021 Jogjafile Inc.
User-Agent strings can come in various form, so it's better to use an API such as User Agent Parsing API to get better results.
You've not explained us why you want to detect the browser. But take some time to read MDN advices about/against browser detection: