how can i capture a nt ser name when a user enters a site?
Printable View
how can i capture a nt ser name when a user enters a site?
I've used this on Win2k but dont know if it will work on nt:
I guess you would need to reference "System.Security.Principal".VB Code:
Dim objWinId As WindowsIdentity = WindowsIdentity.GetCurrent Dim strUserName() As String = Split(objWinId.Name, "\") Dim sUsername As String = strUserName(1).ToUpper
Try something like HttpCurrent.User.Identity.Name
I could be mistaken though, that is from memory.