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