Here Mudassar Ahmed Khan has explained with an example, how to implement and use the LoginName control in ASP.Net using C# and VB.Net.
In this article, the login form has been implemented using ASP.Net Login control and Forms Authentication.
The LoginName control is used to display the Username of the Logged in User in ASP.Net.