Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to get the loged in user ID
Message
De
04/07/2010 12:07:12
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
04/07/2010 03:59:24
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01471353
Message ID:
01471357
Vues:
58
Sorry for about that. I am using the built in Membership controls. It works quite well except I need to get the user ID that is stored in the aspnet_Membership table. I found the user name in Page.User.Identity.Name. I really don't want to make another trip to the database just to get the userid.

>>Hi All
>>
>>I have my web site running and logging in. The login controls seems to be this big black box and I can't seem to find much documentation on how the work. I seems hard to find anything in the help. Now I need to know where to get the user id for each hit after the user logs in?
>
>You don't mention what authentication you are using and I'm not sure what you mean by the 'user id' but Page.User should provide an IPrincipal so maybe something like Page.User.Identity.Name........
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform