摘要: 1 protected void Application_BeginRequest() 2 { 3 //获取当前请求的url 4 string url = HttpContext.Current.Request.Path;... 阅读全文
posted @ 2014-03-08 12:16 -Xu-Zhao- 阅读(1137) 评论(2) 推荐(0) 编辑
摘要: 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 //如果出现... 阅读全文
posted @ 2014-03-08 12:09 -Xu-Zhao- 阅读(1496) 评论(0) 推荐(1) 编辑