J
Jonathan Dixon
I am developing an intranet and was wondering, when a user logs on is there
a way to get the username of the windows account in asp.net.
I have tried the following but they return the worker process username e.g
DOMAIN\ASPNET
Can somone suggest a way or provide some code the get the username of the
logged on account in windows
Thanks
Jonathan Dixon
User.Identity.Name.ToString();
System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
a way to get the username of the windows account in asp.net.
I have tried the following but they return the worker process username e.g
DOMAIN\ASPNET
Can somone suggest a way or provide some code the get the username of the
logged on account in windows
Thanks
Jonathan Dixon
User.Identity.Name.ToString();
System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();