Name
Path
Synopsis
stringvar = Request.Path
Returns a String containing the virtual path of the current client request. The virtual path includes the name of the application root folder, subfolders in the request path, and the requested filename.
Parameters
-
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.
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.