2009年11月5日

ASP.NET MVC - 用户验证和权限验证

摘要: MVC架构下如何实现登录验证这一常见功能?Troy通过一个Security Controller给出了一种方法:http://www.squaredroot.com/post/2007/12/ASPNet-MVC-Membership-Basics.aspx权限验证的一个方法:http://www.squaredroot.com/post/2008/01/MVC-Authentication-an... 阅读全文

posted @ 2009-11-05 15:35 ★金★ 阅读(1054) 评论(0) 推荐(0) 编辑

C#中int? id 和 id ?? 1

摘要: int? id 表示id是可以为null的整型 跟Nullable <int> id 是一样的 id ?? 1等于 id==null?1:id; 阅读全文

posted @ 2009-11-05 09:35 ★金★ 阅读(622) 评论(0) 推荐(0) 编辑

导航