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.Browserand browser versionRequest.Browser.MajorVersion -
to get the Os name
Request.Browser.Platformand os version Request.UserAgent
1
solved How can I extract a string using C# Substring [closed]