
Browser | 323
HttpRequest
Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
ApplicationPath
stringvar = Request.ApplicationPath
Returns a string containing the path to the virtual root of the current application.
Parameter
stringvar
A string variable to receive the value of the ApplicationPath property.
Example
The code example retrieves the ApplicationPath and writes it to the client using
the Message label control:
Sub Page_Load( )
Message.Text = Request.ApplicationPath
End Sub
The output of the code should be the name of the virtual root of the application to
which the request was sent.
Browser
bc = Request.Browser
Returns an instance of the HttpBrowserCapabilities class that describes the capa-
bilities of the client browser. You can then use the class instance to determine
what capabilities the client browser supports. The
HttpBrowserCapabilities class
exposes the capabilities of the client browser as a set of Boolean and String prop-
erties. Properties of the
HttpBrowserCapabilities class include:
ActiveXControls
A Boolean indicating whether the browser supports ActiveX controls.
AOL
A Boolean indicating whether the browser is an AOL browser.
BackgroundSounds
A Boolean indicating whether the browser supports background sounds.
Beta
A Boolean indicating whether the browser is beta software.
Browser
A String containing the User-Agent header ...