Name
PathInfo
Synopsis
stringvar = Request.PathInfo
Returns a String containing any additional path information (including path information appended to a URL after the filename of the requested resource) passed with the current request.
Parameters
-
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.
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.