System.Web.HttpRequest.AppRelativeCurrentExecutionFilePath Property

Gets the virtual path of the application root and makes it relative by using the tilde (~) notation for the application root (as in "~/page.aspx").

Syntax

public string AppRelativeCurrentExecutionFilePath { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property to provide URL information that will stay the same even if the application changes location. This allows the same URL-mapping code to be used in a test environment and in the final deployment environment, or to be used by copies of Web applications in different domains.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0