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