[Solved] How can I extract a string using C# Substring [closed]


Instead of splitting the useragent, you should use the properties already supplied the Asp.net Framework to detect the browser/os.

Use this

  1. to get the browser name Request.Browser.Browser and browser version Request.Browser.MajorVersion

  2. to get the Os name Request.Browser.Platform and os version Request.UserAgent

1

solved How can I extract a string using C# Substring [closed]