Page.User.Identity.Name specify the identifier of the current user. Membership.GetUser () allows you to get information about the user.
BTW, a call to getUser () without a parameter is the same as
Membership.GetUser(Page.User.Identity.Name)
So, if you just need a username, use Page.User.Identity.Username and use Memberhip.GetUser () to get more information about the user, for example, about email, or to perform an action with the user, for example, change the password.
Hope this helps
source share