.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Code Snippets >> System Process >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

To know the current logged in User Name

Posted By:Rahul       Posted Date: October 22, 2008    Points: 10    Category: System Process    URL: http://www.dotnetspark.com  

Sometimes we need to know the logged use name . With Environment onjects UserName property you can get the logged user name .Below is the code to know the current Loggedin UserName using C#.

string strUser = Environment.UserName;


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend