mj_developer: All profile classes return data for current user but i want return data for multiple users from ' PropertyValues field ' in ' aspnet_profile table ' ???
I do it this way and it works:
1 public object[] GetPropertyValues(string propertyName)
2 {
3 int totRec;
4 List<object> values = new List<object>();
5 ProfileInfoCollection pic = ProfileManager.GetAllProfiles(ProfileAuthenticationOption.Authenticated, 0, 1000, out totRec);
6
7 foreach (ProfileInfo pi2 in pic)
8 values.Add(ProfileBase.Create(pi2.UserName).GetPropertyValue(propertyName));
9
10 return values.ToArray();
11 }
12