How to figure out the domain user?

  • Thread starter Thread starter Enric
  • Start date Start date
E

Enric

Hi all of you,

I was wondering how can I figure out the domain username logged in my
application.
I remember that when I run Access I had System() function which returned the
name of the domain user.

Thanks in advance and regards,
 
My.User.Name,
but if you start with sub main, you'll need to call
My.User.InitializeWithWindowsUser()
first.

hth
 
You are <%=Request.ServerVariables("LOGON_USER")%> and Today is <
% =Now%> <br />
Running <%=Request.ServerVariables("SCRIPT_NAME")%>
 
Back
Top