ASP.NET MemberShip getting user info by UserId

Discussion in 'ASP .Net' started by mazdotnet, Sep 12, 2007.

  1. mazdotnet

    mazdotnet Guest

    Hi,

    I'm trying to get the 'User Information' by using the UserId and it
    doesn't work.

    This works,

    MembershipUser membershipUser = Membership.GetUser("username");
    tbxUsername.Text = membershipUser.UserName;
    tbxEmail.Text = membershipUser.Email;

    However, I need to grab this information by UserId (ProviderUserKey)
    and not by Username. But I can't get it to work. Any suggestions?

    Thx
    M.
     
    mazdotnet, Sep 12, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    727
  2. Replies:
    3
    Views:
    502
  3. perplexed
    Replies:
    10
    Views:
    879
    Juan T. Llibre
    Jan 28, 2007
  4. Adam Right
    Replies:
    2
    Views:
    1,724
  5. TdarTdar
    Replies:
    15
    Views:
    280
    André da Silva Carrilho
    Jul 28, 2006
Loading...

Share This Page