Get the username from the membership provider

I am using the built in AspNetSqlMembershipProvider and am trying to get the username the user logged in with. How do I get that information?

jui2ceAsked:
Who is Participating?
 
daniel_ballaCommented:
the user ID is Context.User.Identity.Name
and to get the membershipuser object: MembershipUser user = Membership.GetUser(Context.User.Identity.Name);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.