HttpRequestBase.CurrentExecutionFilePath Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

When overridden in a derived class, gets the virtual path of the current request.

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

public virtual string CurrentExecutionFilePath { get; }

Property Value

Type: System.String

The virtual path of the page handler that is currently executing.

Exception Condition
NotImplementedException

Always.

The CurrentExecutionFilePath property returns the file path of the currently executing page handler.

When you redirect a request using either the HttpServerUtility.Execute method or the HttpServerUtility.Transfer method, the CurrentExecutionFilePath property returns the path of the page that you are redirecting to (the child page). However, when the client is redirected to another page, the FilePath property returns the path to the original page.

.NET Framework
Available since 3.5
Return to top
Show: