how to get user's UserId

J

Jeff

Hey

ASP.NET 2.0

I'm wondering how to get the users UserId (the uniqueidentifier value stored
in the UserId column in aspnet_Users)??

I'm wondering because I want to add some more tables to the ASPNETDB.MDF
database, and use the UserID as foreign key in this custom tables....

I can't see the userId property from the Profile object....

I know I can do soemthing like this, but thought maybe there is a better
way:
select c.*
from aspnet_users a, mytable c
where a.UserId = c.UserId and a.UserName = "jeff"

What is your suggestion?

Jeff
 

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,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top