Re: How to get the USERID
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 18 Sep 2006 07:24:30 +0000 (UTC)
I guess you are talking about the GUID?
You can get that from MembershipUser.ProviderUserKey
---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com
I am using the ASP.NET membership stuff and have succesfully
implemented it on my site. However, I would now like to be able to get
the UserId which is stored for registered users in the aspnet_users
table in ASPNETDB.MDF. The reason is that I would like to include this
value for users who insert records in other tables in my database. I
thought I could use the LoginName control to get the Username which I
could then use to query the aspnet_users table, but I can't find a
property which will give me the Username in the control.
I would appreciate any help from the gurus out there.
.
- References:
- How to get the USERID
- From: Doug Batchelor
- How to get the USERID
- Prev by Date: Re: How to get the USERID
- Next by Date: RE: Multiple Membership providers and AddUserToRole
- Previous by thread: Re: How to get the USERID
- Next by thread: ASP 2.0, C#, LDAP Login, and Forms impersonation?
- Index(es):
Relevant Pages
|