
复制代码 代码如下:
[OutputCache(Duration=60)] 
public ActionResult Browse(string category) 
{ 
return View(); 
} 
复制代码 代码如下:
 
public class Global: System.Web.HttpApplication 
{ 
public override string GetOutputCacheProviderName(HttpContext context)/ 
{ 
if(context.Request.Path.EndsWith("Home.aspx") 
{ 
return "AspNetInternalProvider"; 
} 
else 
{ 
return base.GetOutputCacheProviderName(context); 
} 
} 
} 
新闻热点
疑难解答
图片精选