The following line
Environment.UserName
In debug mode in visual studio returns the identity of the user like I need.
Then when I se
Try using
Request.ServerVariables["LOGON_USER"]
It will return DOMAIN\USERNAME. You can then split it etc.
DOMAIN\USERNAME