
PhysicalApplicationPath | 333
HttpRequest
Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Parameter
stringvar
A string variable to receive the file path.
Example
The example displays the Path property to the user:
Sub Page_Load( )
Dim path As String
path = Request.FilePath
Message.Text = "The virtual path of the current request is: " & path
End Sub
Notes
This property is identical to the FilePath property listed earlier in this chapter.
PathInfo
stringvar = Request.PathInfo
Returns a string containing any additional path information (including path infor-
mation appended to a URL after the filename of the requested resource) passed
with the current request.
Parameter
stringvar
A string variable to receive the additional path information.
Example
The example writes both the Path and PathInfo properties to the client browser:
Sub Page_Load( )
Message.Text = "Path = " & Request.Path & "<br/>"
Message.Text &= "Additional Path Info = " & Request.PathInfo & "<br/>"
End Sub
Notes
PathInfo does not return information such as query string values. PathInfo returns
any characters following a forward-slash (/) after the resource (file) name,
including the forward-slash itself.
PhysicalApplicationPath
stringvar = Request.PhysicalApplicationPath
Returns a string containing the physical path to the root of the current
application.
Parameter
stringvar
A string ...