日期:2014-05-17 浏览次数:20456 次
Regex reg = new Regex(@".+view(.\d+).shtml");
Match ismath = reg.Match(HttpContext.Current.Request.Url.AbsolutePath);
if (ismath.Success)
{
string id = ismath.Groups[1].Value;
HttpContext.Current.RewritePath("view.aspx?id=" + id);
}