This documentation is archived and is not being maintained.
HttpRequest.Browser Property
Visual Studio 2008
Gets or sets information about the requesting client's browser capabilities.
Assembly: System.Web (in System.Web.dll)
'Declaration Public Property Browser As HttpBrowserCapabilities 'Usage Dim instance As HttpRequest Dim value As HttpBrowserCapabilities value = instance.Browser instance.Browser = value
Property Value
Type: System.Web.HttpBrowserCapabilitiesAn HttpBrowserCapabilities object listing the capabilities of the client's browser.
The following code example sends a list of the browser's capabilities back to the client in an HTML page.
Dim bc As HttpBrowserCapabilities = Request.Browser Response.Write("<p>Browser Capabilities:</p>") Response.Write("Type = " & bc.Type & "<br>") Response.Write("Name = " & bc.Browser & "<br>") Response.Write("Version = " & bc.Version & "<br>") Response.Write("Major Version = " & bc.MajorVersion & "<br>") Response.Write("Minor Version = " & bc.MinorVersion & "<br>") Response.Write("Platform = " & bc.Platform & "<br>") Response.Write("Is Beta = " & bc.Beta & "<br>") Response.Write("Is Crawler = " & bc.Crawler & "<br>") Response.Write("Is AOL = " & bc.AOL & "<br>") Response.Write("Is Win16 = " & bc.Win16 & "<br>") Response.Write("Is Win32 = " & bc.Win32 & "<br>") Response.Write("Supports Frames = " & bc.Frames & "<br>") Response.Write("Supports Tables = " & bc.Tables & "<br>") Response.Write("Supports Cookies = " & bc.Cookies & "<br>") Response.Write("Supports VB Script = " & bc.VBScript & "<br>") Response.Write("Supports JavaScript = " & bc.JavaScript & "<br>") Response.Write("Supports Java Applets = " & bc.JavaApplets & "<br>") Response.Write("Supports ActiveX Controls = " & bc.ActiveXControls & "<br>") Response.Write("CDF = " & bc.CDF & "<br>")
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: