62,263
社区成员
发帖
与我相关
我的任务
分享
protected void Application_BeginRequest(Object sender, EventArgs e)
{
string url = Request.AppRelativeCurrentExecutionFilePath;
//匹配全部列表也
Match match2 = Regex.Match(url, @"~/category/([A-Za-z]+)/");
if (match2.Success)
{
Context.RewritePath("/List.aspx?categoryid=" + match2.Groups[1].Value);
}
}