Is your browser a beta one (VB.net) : Browser « Request « ASP.Net






Is your browser a beta one (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
    If BCaps.Beta Then
        lblMessage.Text = "You are using a Beta browser!"
    Else
        lblMessage.Text = "You are not using a Beta browser!"
    End If
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Browser Beta</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.Browser name, major version and minor version (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)