dropdown list of friends

Aug 9, 2007 at 6:42 AM
Can someone tell me how to create a dropdown list of friends. I'm familiar with 'select' and 'option' tags but not sure how to populate it automatically with a friend list.
Many thanks,
Aug 18, 2007 at 5:26 AM
you can try this

Collection<User> friends = _fbService.GetFriends();

foreach (User _friend in friends)
MyFriendsDDList.Items.Add(new ListItem(_friend.FirstName + " " + _friend.LastName));

probably there is a better way to it but this will help ...