/// <summary> /// The BindData helper method is used to bind the list of /// security roles for this portal to an asp:datalist server control /// </summary> private void BindData() { // add the role name to the title if (roleId != Guid.Empty) { RainbowRoleProvider roleProvider = ( RainbowRoleProvider )System.Web.Security.Roles.Provider; RainbowRole role = roleProvider.GetRoleById(roleId); title.InnerText = General.GetString("ROLE_MEMBERSHIP") + role.Name; } // Get the portal's roles from the database UsersDB users = new UsersDB(); // bind users in role to DataList usersInRole.DataSource = users.GetRoleMembers(roleId); usersInRole.DataBind(); // bind all portal users to dropdownlist allUsers.DataSource = users.GetUsers(); allUsers.DataBind(); }