摘要: 通过重写IAuthorizationFilter检查访问者是否授权,如果未授权就转到指定登陆页面去。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicvoidOnAuthorization(AuthorizationContextfilt... 阅读全文
posted @ 2010-05-03 16:11 Daniel Chow 阅读(2417) 评论(3) 推荐(1) 编辑
摘要: 大多数情况下我们返回到客户端的Json有两种方式:1、直接传对象给Json()去转成Json代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--publicActionResultJsonTest(){List<Result>list=ne... 阅读全文
posted @ 2010-05-03 15:49 Daniel Chow 阅读(3857) 评论(3) 推荐(0) 编辑