determine browser

HLRosenberger
HLRosenberger used Ask the Experts™
on
Is there a way to determine the browser?  
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Glanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015
Commented:
If this is ASP.NET, you can inspect the value of Request.UserAgent. You'll need to do some string parsing, but it should give you an indication of which is being used.
Most Valuable Expert 2012
Top Expert 2014
Commented:
Mohamed AbowardaSenior Software Engineer
Commented:
Simply use:
Request.Browser.Browser

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) _
    Handles MyBase.Load
        Response.Write("<B>User Agent ::</B> " & Request.UserAgent & "<BR>")
        Response.Write("<B>Browser ::</B> " & Request.Browser.Browser & "<BR>")
        Response.Write("<B>Version ::</B> " & Request.Browser.Version & "<BR>")
        Response.Write("<B>Major::</B> " & Request.Browser.MajorVersion() & "<BR>")
        Response.Write("<B>Minor::</B> " & Request.Browser.MinorVersion() & "<BR>")
End Sub

Open in new window

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial