2011年2月23日

隐式转换问题(题目这样起可能不合适)

摘要: 背景:asp.net mvc登录自写代码代码1:判断登录用户的角色 1 /// <summary> 2 /// 角色是否为管理员 3 /// </summary> 4 public static bool IsRole() 5 { 6 return SessionAccessor<int>.GetSession("Role") == 1; 7 /* 8 *当HttpContext.Current.Session["Role"]为null时, 9 * Convert.ToInt32(HttpContext.Current 阅读全文

posted @ 2011-02-23 17:49 Allan GC 阅读(183) 评论(0) 推荐(0) 编辑

导航