1
1qa2ws
Hi,
I need to get the windows current logged username and domain. Is it any
possibility?
1qa2ws
I need to get the windows current logged username and domain. Is it any
possibility?
1qa2ws
DotNet Coder said:Well, because, in the case of using ASP.NET, System.Environment.UserName
/System.Environment.UserDomainName will return the name of the currently
logged on user on the server. Not the client using your web application.
In winforms, I suppose you could use System.Environment with no problem.