//******************************************************* // // The BindData helper method is used to bind the list of // security roles for this portal to an asp:datalist server control // //******************************************************* private void BindData() { // unhide the Windows Authentication UI, if application if (User.Identity.AuthenticationType != "Forms") { windowsUserName.Visible = true; addNew.Visible = true; } // add the role name to the title if (roleName != "") { title.InnerText = "��ɫ��ϵ: " + roleName; } IAccountFacade facade = new AccountFacade(); // Get the portal's roles from the database // bind users in role to DataList usersInRole.DataSource = facade.RoleMembers(roleId); usersInRole.DataBind(); // bind all portal users to dropdownlist allUsers.DataSource = facade.Users(); allUsers.DataBind(); }
public void RoleMembersTest() { //IList<PortalUser> GetRoleMembers(int roleId) AccountFacade facade = new AccountFacade(); facade.RoleMembers(0); }