public RedirectPermanent ( string url, bool endResponse ) : void | ||
url | string | |
endResponse | bool | |
return | void |
public void RedirectPermanent (string url, bool endResponse)
{
Redirect (url, endResponse, 301);
}
HttpResponse::RedirectPermanent ( string url ) : void |
/// <summary> /// 写入到http回应 /// </summary> /// <param name="response"></param> public void WriteResponse(HttpResponse response) { if (Permanent) { response.RedirectPermanent(Url); } else { response.Redirect(Url); } }