Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET MemberShip getting user info by UserId

Reply
Thread Tools

ASP.NET MemberShip getting user info by UserId

 
 
mazdotnet
Guest
Posts: n/a
 
      09-12-2007
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting UserId of newly created user by CreateUserWizard Adam Right ASP .Net 2 03-06-2008 04:07 AM
Accessing membership UserId programmatically? perplexed ASP .Net 10 01-28-2007 10:48 PM
Why no UserID property in the Membership class? ILaughLouder@gmail.com ASP .Net 3 08-16-2006 06:48 PM
getting Membership userid to use and store in a custom database TdarTdar ASP .Net Web Controls 15 07-28-2006 02:56 PM
getting the membership userid from username when anonymous? neilmcguigan@gmail.com ASP .Net 0 05-28-2006 07:19 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57