摘要: (简单)方法一:1.首先在网站的根目录下添加一个Global.asax,全局的应用程序2.找到Application_BeginRequest 1)获取应用程序的路径将其变为相对路径 string url = Request.AppRelativeCurrentExecutionFilePath; 2)用正则表达式匹配获得的路径 Match match = Regex.Match(url, @"~/BookList/BookList_(\d+).aspx"); 3)用Context.RewritePath跳转到对应的程序目录if (match.Success) ... 阅读全文
posted @ 2013-02-01 21:16 Suner 阅读(157) 评论(0) 推荐(0) 编辑