摘要:
1 protected void Application_BeginRequest() 2 { 3 //获取当前请求的url 4 string url = HttpContext.Current.Request.Path;... 阅读全文
摘要:
1 using System.IO; 2 using System.IO.Compression; 3 using System.Web; 4 using System.Web.Mvc; 5 6 public class CompressAttribute : ActionFilterAttribute 7 { 8 public override void OnResultExecuted(ResultExecutedContext filterContext) 9 {10 //如果出现... 阅读全文