Re: How to get the USERID



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.



.



Relevant Pages

  • Re: How to get the USERID
    ... (ByVal sender As Object, _ ... stored for registered users in the aspnet_users table in ASPNETDB.MDF. ... Username in the control. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Session Management using JSP
    ... actually i tried the container based security, ... username and password, then how i will match the username and password ... username and password of the registered users are stored in the ... database as soon as they register. ...
    (comp.lang.java.programmer)
  • Re: Session Management using JSP
    ... username and password, then how i will match the username and password ... username and password of the registered users are stored in the ... database as soon as they register. ... Java Web Hosting at: ...
    (comp.lang.java.programmer)
  • Re: Session Management using JSP
    ... using FORM authentication it started restricting my whole web ... username and password, then how i will match the username and password ... username and password of the registered users are stored in the ... database as soon as they register. ...
    (comp.lang.java.programmer)
  • Re: How to reference the UserName
    ... Don't bother storing the username in a session variable. ... Begginer question, The site was configured using the ASPNETCONFIGURATION ... Ok so when I use a LoginName control I can display the currently ...
    (microsoft.public.vstudio.development)