Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ApplicationPath Property

HttpRequest.ApplicationPath Property

Gets the ASP.NET application's virtual application root path on the server.

[Visual Basic]
Public ReadOnly Property ApplicationPath As String
public string ApplicationPath {get;}
public: __property String* get_ApplicationPath();
public function get ApplicationPath() : String;

Property Value

The virtual path of the current application.


The following example assigns the virtual application root path for the current URL request to a string variable.

[Visual Basic] 
Dim Path As String
 Path = Request.ApplicationPath

String Path;
 Path = Request.ApplicationPath;

String* Path;
 Path = Request->ApplicationPath;

var path : String = Request.ApplicationPath


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpRequest Class | HttpRequest Members | System.Web Namespace

© 2015 Microsoft