protected void Application_Error(object sender, EventArgs e)
{
HttpContext.Current.RewritePath("~/inc/error.aspx");
}这样为什么不可以但 用 Response.Redirect("~/inc/error.aspx")却可以
{
HttpContext.Current.RewritePath("~/inc/error.aspx");
}这样为什么不可以但 用 Response.Redirect("~/inc/error.aspx")却可以
先判断Url是不是你想要的,然后
Context.RewritePath(Url)