System.Web Namespace HttpRequest Class
Gets the physical file system path of the currently executing server application's root directory.
[ VB ] Public ReadOnly Property PhysicalApplicationPath As String [ C# ] public string PhysicalApplicationPath {get;} [ C++ ] public: __property String* get_PhysicalApplicationPath ( ); [ JScript ] public function get PhysicalApplicationPath ( ) : String;
The file system path of the current application's root directory.
The following example shows the simplest way to retrieve and display the PhysicalApplicationPath for the current URL request.
<%= Request.PhysicalApplicationPath %>
And which, for this page, returns the following:
D:\Home\asp.net.ph\httpdocs\
Show me
Request.ApplicationPath Request.FilePath Request.Path Request.PathInfo 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