摘要: MVC中的權限,通用設置。 阅读全文
posted @ 2012-03-11 17:32 無限遐想 阅读(2405) 评论(0) 推荐(0)
摘要: 為了解決匿名用戶登錄成功以後,執行一些操作。在petshop有實現1.在web.config中 加入<anonymousIdentification enabled="true" />表示激發Profile_MigrateAnonymous事件2.在Global.asax中定義事件 void Profile_MigrateAnonymous(Object sender, ProfileMigrateEventArgs e) { // 获取匿名用户资料 }其中:e.AnonymousID為匿名用戶登錄的idvar currentUser = HttpContext 阅读全文
posted @ 2012-03-11 10:18 無限遐想 阅读(1140) 评论(0) 推荐(2)