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();

No comments:

Post a Comment