控件權限管理思路

一、編寫判斷用戶角色相關的類及方法。html protected bool ShowButtonBasedOnRole(string RoleOfInterest) {       return User.IsInRole(RoleOfInterest);   }post   二、經過調用相關方法控制控件的顯示與否、能不能使用。rest   <asp:Button ID="Button1" run
相關文章
相關標籤/搜索