
ClientCertificate | 325
HttpRequest
Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
version information from four of its Integer properties: Major, Minor, Revi-
sion, and Build.
Win16
A Boolean indicating whether the client is a Win16 machine.
Win32
A Boolean indicating whether the client is a Win32 machine.
Parameter
bc
An Object variable of type HttpBrowserCapabilities.
Example
Sub Page_Load( )
Dim bc As HttpBrowserCapabilities
bc = Request.Browser
If bc.Cookies Then
Message.Text = "Cookies are available with this browser"
Else
Message.Text = "Cookies are not available with this browser"
End If
End Sub
Notes
You will probably use this property a lot if you plan to support multiple browsers
and must provide the highest level of functionality on uplevel browsers such as
Internet Explorer 5 or 6 or Netscape 6. For some properties, such as Cookies and
JavaScript, the returned Boolean indicates only whether the browser version
sending the request supports these features, not whether they are currently
enabled in the current user’s browser.
This property is especially important when developing custom server controls,
since it allows you to have your custom controls automatically tailor their output
to a specific browser (or class of browsers). See Chapter 6 for more information
on custom control development.
ClientCertificate
cs = Request.ClientCertificate ...