asp.net.ph

Request.Path Property

System.Web Namespace   HttpRequest Class


Gets the virtual path of the current request.

[ VB ]
Public ReadOnly Property Path As String

[ C# ]
public string Path {get;}

[ C++ ]
public: __property String* get_Path ( );

[ JScript ]
public function get Path ( ) : String;

Property Value

The virtual path of the current request.

Example

The following example shows the simplest way to retrieve and display the Path for the current URL request.

<%= Request.Path %>

And which, for this page, returns the following:

/sys/Web/HttpRequestClassPath.aspx

 Show me 

See Also

Request.ApplicationPath   Request.FilePath   Request.PathInfo   Request.PhysicalApplicationPath   Request.PhysicalPath   Request.RawUrl   Request.Url   HttpRequest Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph