时间:2021-07-01 10:21:17 帮助过:9人阅读
public class Global : System.Web.HttpApplication
{
protected void Application_BeginRequest(object sender, EventArgs e)
{
HttpContext context = HttpContext.Current;
if (context.Request.Path.Equals("/demo", StringComparison.InvariantCultureIgnoreCase))
{
context.RewritePath("~/demoList.aspx");
}
}
}