System.Web Namespace HttpRequest Class
Gets the virtual path of the current request.
[ VB ] Public ReadOnly Property FilePath As String [ C# ] public string FilePath {get;} [ C++ ] public: __property String* get_FilePath ( ); [ JScript ] public function get FilePath ( ) : String;
The virtual path of the current request.
The following example shows the simplest way to retrieve and display the FilePath for the current URL request.
<%= Request.FilePath %>
And which, for this page, returns the following:
/sys/Web/HttpRequestClassFilePath.aspx
Show me
Request.ApplicationPath Request.Path Request.PathInfo Request.PhysicalApplicationPath Request.PhysicalPath Request.RawUrl Request.Url HttpRequest Members
© 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