Browser name, major version and minor version (VB.net) : Browser « Request « ASP.Net






Browser name, major version and minor version (VB.net)

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
    Dim BCaps As HttpBrowserCapabilities
    BCaps = Request.Browser
    lblMessage.Text = "Browser Name: " _
        & BCaps.Browser & "<BR>" _
        & "Browser Major Version: " & BCaps.MajorVersion & "<BR>" _
        & "Browser Minor Version: " & BCaps.MinorVersion & "<BR>"
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Browser Type</TITLE>
</HEAD>
<form runat="server">
<asp:label 
    id="lblMessage" 
    font-size="12pt"
    font-name="Tahoma"
    runat="server"
/>
</form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.Assign value to browser title bar (C#)
2.Use Browser property in Request object (C#)
3.Is your browser a beta one (VB.net)
4.Request.Browser.ActiveXControls: client supports activex? (VB.net)
5.Request.Browser.Frames: browser supports frames (VB.net)
6.Check Browser version and vendor(C#)
7.Check Browser version and name (VB.net)
8.Get Browser Information: AOL, JavaScript enabled, Browser type and tables enabled (VB.net)