Http Browser Capabilities (VB.net) : Browser Capabilities « Request « ASP.Net






Http Browser Capabilities (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
    lblMessage1.Text = lblMessage1.Text _
        & "AOL: " & BCaps.AOL & "<BR>" _
        & "Supports BG Sounds: " & BCaps.BackgroundSounds & "<BR>" _
        & "Beta Browser: " & BCaps.Beta & "<BR>" _
        & "Browser Name: " & BCaps.Browser & "<BR>" _
        & "Supports Cookies: " & BCaps.Cookies & "<BR>" _
        & "Is a Web Crawler: " & BCaps.Crawler & "<BR>" _
        & "Browser Major Version: " & BCaps.MajorVersion & "<BR>" _
        & "Browser Minor Version: " & BCaps.MinorVersion & "<BR>" _
        & "Platform: " & BCaps.Platform & "<BR>" _
        & "Is Win 16: " & BCaps.Win16 & "<BR>" _
        & "Is Win 32: " & BCaps.Win32 & "<BR>" 
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Browser Capabilities Sample Page</TITLE>
</HEAD>
<BODY >
<form runat="server">
<Font Face="Tahoma">
<asp:Label
    id="lblMessage1"
    runat="Server"
    Font-Bold="True"
/>
</Font>
</Form>
</BODY>
</HTML>

           
       








Related examples in the same category

1.Browser supports ActiveX Controls? (VB.net)
2.Browser support Java? (VB.net)
3.Browser supports Javascript (VB.net)
4.Browser support VB script (VB.net)
5.Browser supports cookie? (VB.net)
6.Is 16 / 32 bits window based? (VB.net)
7.Get Browser Name (VB.net)