Is there anyway I can get the full name of the user that's logged in. I am able to get the username of the logged in person, but not full-name. Also, it seems I am only able to get username of person in child pages. I need to get username in my master page for something, but it won't work, saying user doesn't exist in current context even though I imported all objects that I have for my child pages where this same code works. Can someone tell me what I am doing wrong? Or does it not work in Master Page (which I don't see why)?
FormsIdentity id = (FormsIdentity)User.Identity;
FormsAuthenticationTicket ticket = id.Ticket;
myLabel.InnerHtml = ("Hello, " + Server.HtmlEncode(User.Identity.Name));
Also, this other one works in Master Page but returns domain/username but I only want username:
View Complete Post