Export (0) Print
Expand All

HttpContext.RewritePath Method

Redirects a request for a resource to a different path than the one that is indicated by the requested URL. RewritePath is used in cookieless session state to strip session IDs from URLs.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method RewritePath(String) Rewrites the URL using the given path.
Public method RewritePath(String, Boolean) Rewrites the URL using the given path and a Boolean value that specifies whether the virtual path for server resources is modified.
Public method RewritePath(String, String, String) Rewrites the URL by using the given path, path information, and query string information.
Public method RewritePath(String, String, String, Boolean) Rewrites the URL using the given virtual path, path information, query string information, and a Boolean value that specifies whether the client file path is set to the rewrite path.
Top
Show:
© 2014 Microsoft