How do I access the current users info, specifically their first and last name through the cshtml page?
Hi Lawrence,
Please refer to the bottom of this support article:
Tip: When writing additional code or views for your website, you can access information about the currently authenticated user via the User property. For example, User.Identity.Name returns the username of the currently signed-in user.
Hi Lawrence, you can use:
@using CMS.Membership <p>@MembershipContext.AuthenticatedUser.FirstName</p>
Please, sign in to be able to submit a new answer.