I want to set this Array with the result of ths Query but I can't. How do I do it ?
String[] q = (from p in MDB.aspnet_Memberships
where p.aspnet_User.aspnet_UsersInRoles.Single().aspnet_Role.RoleName.ToString() == GroupDDL.SelectedItem.ToString()
select new{p.UserId }).ToArray();
Exception :
Cannot implicitly convert type 'AnonymousType#1[]' to 'string[]'