.NET Tip - Getting logged in user name in ASP.NET web application
Frequently we desire to autopopulate some fields on our web form with the current logged in username and domain.
How to get that information?
Well, User.Identity.Name comes to the rescue.
Set the text property of the field to User.Identity.Name and it will show the logged-in username prefixed by the domain information