Getting the current MemberID to a variable that I can use? RRS feed

  • Question

  • User-56120927 posted

    Can someone give me a snippet that assigns the MemberID (UniqueIdentifier datatype from the club.mdf database) value for a page's currently logged in user to a variable?

    The idea here is that I want to be able to insert that value into a new table.



    Sunday, September 10, 2006 4:15 AM

All replies

  • User-1346905220 posted
    You can use Membership.GetUser().ProviderUserKey.
    Sunday, September 10, 2006 8:58 AM
  • User-56120927 posted

    Thanks, that helped!  I ended up using:

     MemberID = Membership.GetUser.ProviderUserKey.ToString()


    Monday, September 11, 2006 2:13 AM