In this article you will get to know how to retrieve logged in user name in ASP.Net.
In the Previous articles i explained Add check boxes column in DataGridView for deleting records from database, what is query string and how to use it in asp.net, how to retrieve logged in user password using asp.net, how to enable password retrieval in asp.net, how to get security answer in asp.net and many more about ASP.Net.
If you’re using the Membership API in asp.net and need to retrieve a user’s name, you can do so by doing this:
MembershipUser currentUser = Membership.GetUser();
string username = currentUser.UserName;
Hope this Helps.