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: VB Code: Dim objWinId As WindowsIdentity = WindowsIdentity.GetCurrent Dim strUserName() As String = Split(objWinId.Name, "\") Dim sUsername As String = strUserName(1).ToUpper I guess you would need to reference "System.Security.Principal".
Dim objWinId As WindowsIdentity = WindowsIdentity.GetCurrent Dim strUserName() As String = Split(objWinId.Name, "\") Dim sUsername As String = strUserName(1).ToUpper
>!v!< Free your mind, stop thinking http://inspirone.blogspot.com Please rate this post if it helped you
Try something like HttpCurrent.User.Identity.Name I could be mistaken though, that is from memory.
My Site
Forum Rules