In this article we will learn how to display corresponding details of a user after successful login. On my home page, I am displaying Welcome to My Company. ShopTalk is a podcast all about front-end web design and development. Once I save the page, script tag is removed automatically. Showing current user name in LoginView control. for that how to do. Explanation: This page contains the HTML coding of the registration page. Another option to find user name is to use Membership.GetUser().UserName property instead of Context.User.Identity.Name. This gives you a block with the default title set as the username of the logged-in user, and shows a message "Welcome back, [username]" Of course if you know views you know that you can configure the fields to display ANY user-field, like a photo, … Uses WordPress functions and queries to pull user information, and to display the login/logout/register links. this is my php code in login page, when i login it gives me this message. Re: how to display user name on page after login using user no id?