• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 654
  • Last Modified:

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?

0
jui2ce
Asked:
jui2ce
1 Solution
 
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now