User ID

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

There is a routine in VB for Access that captures the NT Logon ID of the
user. Is there such a thing with .NET? Where can I find information about
capturing the logged on userID?

tia,
 
use request.servervariables("LOGON_USER")
This should give you DOMAINNAME\USERID,
Parse off the DOMAINNAME from the string.
Hope this helps.

SK
 
Thanks for the reply. I've tried it and now I'm having a problem parsing out
the domain. What's the trick to doing that? As you can tell, I'm new to the
dot NET world.

tia,
JMorrell
 
Imports System.Environment
Private UserName As String = Environment.UserName

This is the simplest way.
 
This is too easy... Thanks

JMorrell



Brian P. Hammer" <bhammer@le "DASH said:
Imports System.Environment
Private UserName As String = Environment.UserName

This is the simplest way.
 
Back
Top