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?

Who is Participating?
the user ID is Context.User.Identity.Name
and to get the membershipuser object: MembershipUser user = Membership.GetUser(Context.User.Identity.Name);
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.