namASPace:System.Web
api:
void RewritePath(string)
void RewritePath(string,bool)
void RewritePath(string,string,string)
void RewritePath(string,string,string,bool)
more information:
public void RewritePath(string path, bool rebaseClIEntPath)
{
if (path == null)
{
throw new ArgumentNullException("path");
}
string newQueryString = null;
int length = path.IndexOf(''?'');
if (length >= 0)
{
newQueryString = (length < (path.Length - 1)) ? path.Substring(length + 1) : string.Empty;
path = path.Substring(0, length);
}
VirtualPath relativePath = VirtualPath.Create(path);
relativePath = this.Request.FilePathObject.Combine(relativePath);
relativePath.FailIfNotWithinAppRoot();
this.ConfigurationPath = null;
this.Request.InternalRewritePath(relativePath, newQueryString, rebaseClIEntPath);
}
internal void RewritePath(VirtualPath filePath, VirtualPath pathInfo, string queryString, bool setClIEntFilePath)
{
if (filePath == null)
{
throw new ArgumentNullException("filePath");