D
Dave Bailey
I am trying to obtain the Windows logon user name from my
local machine for use in a web app. I have added
<identity impersonate="true" /> to the Web.Config file.
This returns the IUSR user name. I am using the following
code to obtain the user name:
return System.Environment.UserName;
Can anyone point me in another direction to obtain the
windows login user name?
Thanks,
Dave
local machine for use in a web app. I have added
<identity impersonate="true" /> to the Web.Config file.
This returns the IUSR user name. I am using the following
code to obtain the user name:
return System.Environment.UserName;
Can anyone point me in another direction to obtain the
windows login user name?
Thanks,
Dave