asp.net.ph

Request.ApplicationPath Property

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;

Property Value

The virtual path of the current application.

Example

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 

See Also

Request.FilePath   Request.Path   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