How can I access custom user properties(eg. first name, last name) on the master page if the Web Forms Project is using Asp.Net Identity System? I've already made this configurations http://www.itorian.com/2013/11/customize-users-profile-in-aspnet.html but my project is not MVC is Web Forms.
By default I can only access user's name using:
Context.User.Identity.GetUserName()
Never mind, I've found the answer.
On Site.Master.cs add this lines:
Then add this lines on the Page_Load() function:
And that's it.
Just to add my two cents to Ceparu's answer:
In Site.Master.cs I also added a public field
In the Page_Load() function changed the second line to use the public field
After changing Site.Master.cs, in Site.Master you can use
Instead of
Done!