Showing posts with label user. Show all posts
Showing posts with label user. Show all posts

May 19, 2010

How to get current user's name? (ASP.NET, C#)

You can get current logged in user's name in a label control as follows:

Label1.Text = User.Identity.Name.ToString();