摘要:
第一种是在页面global.asax中,相关代码如下:View Code voidApplication_BeginRequest(objectsender,EventArgse){HttpContextcontext=((HttpApplication)sender).Context;stringoldurl=context.Request.Path.ToLower();if((oldurl.IndexOf("-")>0&&oldurl.IndexOf(".")==-1)||(oldurl.IndexOf("-" 阅读全文