Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RewritePath Method (String)

HttpContextWrapper.RewritePath Method (String)

Rewrites the URL by using the specified path.

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

public override void RewritePath(
	string path
)

Parameters

path
Type: System.String

The replacement path.

ExceptionCondition
ArgumentNullException

path is null.

HttpException

path is not in the current application's root directory.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft