System.Web Namespace HttpRequest Class
Gets the ASP.NET application's virtual application root path on the server.
[ VB ] Public ReadOnly Property ApplicationPath As String [ C# ] public string ApplicationPath {get;} [ C++ ] public: __property String* get_ApplicationPath ( ); [ JScript ] public function get ApplicationPath ( ) : String;
The virtual path of the current application.
The following example shows the simplest way to retrieve and display the ApplicationPath for the current URL request.
<%= Request.ApplicationPath %>
And which, for this page, returns the following:
/
Show me
Request.FilePath 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