asp.net username

need the username of the current user in an asp.net website? simple:

string username = User.Identity.Name.ToString();

ok it actually not the user name, but the domain user account name… works with windows authentification…

Comments are closed.