I have a dropdown list on a page that has a list of users for an administrator where the bound data column is the user id. I am using the built in asp.net membership provider.
I want the administrator to be able to select a user and send them an email, which would be retrieved using the user id supplied. I need to have the userid as the bound column for other functions on the page.
So my question is, how do I get user information about non logged in users based on the supplied userid?
I have used the following to get a collection of all users:
Dim muc As MembershipUserCollection
muc = Membership.GetAllUsers()
Dim mu As MembershipUser
For Each mu In muc
chrUsername = mu.UserName
Dim userProfile As ProfileCommon = ProfileCommon.Create(chrUsername, True)
''get user info here
but i just want to get info about one user, is there a way to do that, or do i have to loop through the entire user collection to find the one i want?