T
tjonsek
am trying to pull the user logon info in an application to use as a
security stamp when someone completes a function. So far, I am able to
retrieve the computer name. This is, however, not what I'm looking for.
For example, if Sally logs on to the domain as 'sallyJ', then I'd like
to be able to pull the logon 'sallyJ' when she clicks a button.
Here is the code I am using:
(Before declarations)
Imports System.Security
Imports System.Security.Principal.WindowsIdentity
IN a sub btnName_Click():
Dim user As String
user = GetCurrent.Name.ToString
So far, if 'sallyJ' logs onto the network and is using a PC named
'sally_PC', then I get 'sally_PC\ASPNET' when I am really wanting
'domain\sallyJ'.
I appreciate any help or direction you can give me.
security stamp when someone completes a function. So far, I am able to
retrieve the computer name. This is, however, not what I'm looking for.
For example, if Sally logs on to the domain as 'sallyJ', then I'd like
to be able to pull the logon 'sallyJ' when she clicks a button.
Here is the code I am using:
(Before declarations)
Imports System.Security
Imports System.Security.Principal.WindowsIdentity
IN a sub btnName_Click():
Dim user As String
user = GetCurrent.Name.ToString
So far, if 'sallyJ' logs onto the network and is using a PC named
'sally_PC', then I get 'sally_PC\ASPNET' when I am really wanting
'domain\sallyJ'.
I appreciate any help or direction you can give me.