System.Web Namespace HttpRequest Class
Gets information about the requesting client's browser capabilities.
[ VB ]
Public Property Browser As HttpBrowserCapabilities
[ C# ]
public HttpBrowserCapabilities Browser {get; set;}
[ C++ ]
public: __property HttpBrowserCapabilities* get_Browser ( );
public: __property void set_Browser ( HttpBrowserCapabilities* );
[ JScript ]
public function get Browser ( ) : HttpBrowserCapabilities;
public function set Browser ( HttpBrowserCapabilities );
An HttpBrowserCapabilities object listing the capabilities of the client's browser.
The following example renders a list of the current browser's capabilities into an HTML table.
<table width=50% cellspacing=1 class="data" >
<tr>
<th colspan=2>Current Browser Capabilities</th>
<tr>
<td>Type</td>
<td><%= Request.Browser.Type %></td>
<tr>
<td>Name</td>
<td><%= Request.Browser.Browser %></td>
<tr>
<td>Version</td>
<td><%= Request.Browser.Version %></td>
<tr>
<td>Major Version</td>
<td><%= Request.Browser.MajorVersion %></td>
<tr>
<td>Minor Version</td>
<td><%= Request.Browser.MinorVersion %></td>
<tr>
<td>Platform</td>
<td><%= Request.Browser.Platform %></td>
<tr>
<td>Is Beta</td>
<td><%= Request.Browser.Beta %></td>
<tr>
<td>Is Crawler</td>
<td><%= Request.Browser.Crawler %></td>
<tr>
<td>Is AOL</td>
<td><%= Request.Browser.AOL %></td>
<tr>
<td>Is Win16</td>
<td><%= Request.Browser.Win16 %></td>
<tr>
<td>Is Win32</td>
<td><%= Request.Browser.Win32 %></td>
<tr>
<td>Supports Frames</td>
<td><%= Request.Browser.Frames %></td>
<tr>
<td>Supports Tables</td>
<td><%= Request.Browser.Tables %></td>
<tr>
<td>Supports Cookies</td>
<td><%= Request.Browser.Cookies %></td>
<tr>
<td>Supports VB Script</td>
<td><%= Request.Browser.VBScript %></td>
<tr>
<td>Supports JavaScript</td>
<td><%= Request.Browser.JavaScript %></td>
<tr>
<td>Supports Java Applets</td>
<td><%= Request.Browser.JavaApplets %></td>
<tr>
<td>Supports ActiveX Controls</td>
<td><%= Request.Browser.ActiveXControls %></td>
</table>
Show me
HttpRequest Members