How to figure out the domain user?

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,
 
B

Beth

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

hth
 
G

George Lewycky

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top