摘要:
在Asp.netMvc中当你有以下及类似以下需求时你可以使用Filter功能判断登录与否或用户权限决策输出缓存防盗链防蜘蛛本地化与国际化设置实现动态ActionFilter是一种声明式编程方式,在Asp.net MVC中它只能限制于Action(或它的Controller)。Filter要继承于ActionFilterAttribute抽象类,并可以覆写void OnActionExecuting(ActionExecutingContext)和void OnActionExecuted(ActionExecutedContext)以及void OnResultExecuting(Result 阅读全文
posted @ 2013-07-15 18:25
左正
阅读(352)
评论(0)
推荐(0)
摘要:
Html生成模块:WriteHtml.cs 1 using System.Collections.Generic; 2 using System.IO; 3 using System.Text; 4 5 namespace System 6 { 7 /// 8 /// Html 9 /// 10 public class Html11 {12 /// 13 /// 生成Html14 /// 15 /// 模版文件16 /// 生成的文件目录17 /// 生... 阅读全文
posted @ 2013-07-15 10:11
左正
阅读(1002)
评论(0)
推荐(0)

浙公网安备 33010602011771号