Asp.Net 2.0 Profiles Question...

M

Mark Rochotte

Hi All!

I have authenticated profiles setup that have First Name and Last Name values.
During the course of page building, I need to retrieve those values for
all users who are members of a particular role to populate a drop-down list
with people's names instead of usernames.

Is there a way to do this? I can get the profile data en masse, but i can't
figure out the incantation to retrieve individual constituents.

Thanks,

mar
 
K

Ken Cox - Microsoft MVP

Hi Mark,

You might get some ideas from the source code in the ASP.NET Configuration
Tool. It uses this kind of function:

MembershipUser user = (MembershipUser) CallWebAdminHelperMethod(true,
"GetUser", new object[] {userID, false /* isOnline */}, new Type[]
{typeof(string),typeof(bool)});

Look here for the files:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\Security\Users

Let us know how you make out?

Ken
Microsoft MVP [ASP.NET]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top