Dim CurrentUserIdentity As System.Security.Principal.IIdentity = HttpContext.Current.User.Identity
Dim CurrentUserWindowsIdentity As System.Security.Principal.WindowsIdentity = DirectCast(CurrentUserIdentity, System.Security.Principal.WindowsIdentity)
System.Diagnostics.Debug.Write(CurrentUserWindowsIdentity.Name)
Tips and tricks for .NET using ASP and VB code.
Get current username
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment