protected void Page_PreInit(object sender, EventArgs e)
{
Response.StatusCode = 301;
Response.StatusDescription = "Moved Permanently";
Response.RedirectLocation = "AnotherPage.aspx";
HttpContext.Current.ApplicationInstance.CompleteRequest();
}
А в 4.0 есть простой HttpResponse.RedirectPermanent()
метод, который делает все для вас выше:
Response.RedirectPermanent("AnotherPage.aspx");