public static RedirectPermanent ( this response, string url ) : void | ||
response | this | |
url | string | |
Résultat | void |
public static void RedirectPermanent (this HttpResponse response, string url)
{
response.Redirect (url, false);
response.StatusCode = 301;
response.StatusDescription = "Permanently moved";
response.End ();
}
}