Instead of splitting the useragent, you should use the properties already supplied the Asp.net Framework to detect the browser/os.
Use this
-
to get the browser name
Request.Browser.Browser
and browser versionRequest.Browser.MajorVersion
-
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]