1

i want to display friends of a user who are currently logged in.

user321963
  • 549
  • 2
  • 8
  • 17
  • 2
    You need to elaborate Who is a "Friend". Where is this data stored and How do you want to display it – Midhat Mar 11 '11 at 06:13

1 Answers1

1

you need the MembershipProvider.GetAllUsers Method, to get a MembershipUserCollection of all registered users in the application.

Then filter that collection on the property IsOnline of the MembershipUser objects in this collection. (EG with LINQ)

Caspar Kleijne
  • 21,552
  • 13
  • 72
  • 102
  • thnx Caspar... but i also want to filter the users by their userid... like i have a list of userids (1,2,3,4,5,6,7..so on.. i want to check which of these users are online... – user321963 Mar 11 '11 at 06:39