private void BindRolesToList() { // Get all of the roles string[] roles = Roles.GetAllRoles(); UsersRoleList.DataSource = roles; UsersRoleList.DataBind(); }
private void BindRolesToList() { string[] roles = Roles.GetAllRoles(); UsersRoleList.DataSource = roles; UsersRoleList.DataBind(); RoleList.DataSource = roles; RoleList.DataBind(); }
private void BindRolesToList() { // Get all of the roles string[] roles = System.Web.Security.Roles.GetAllRoles(); UsersRoleList.DataSource = roles; UsersRoleList.DataBind(); RoleList.DataSource = roles; RoleList.DataBind(); }
private void BindRolesToList() { // Get all of the roles string[] roles = RoleManager.Roles.Select(r => r.Name).ToArray(); UsersRoleList.DataSource = roles; UsersRoleList.DataBind(); RoleList.DataSource = roles; RoleList.DataBind(); }