ok right i'm writing an intranet page for my company.
The idea of the page is basically to let a user to select items off a list and thenthen send the order to an e-mail address.
the problem i'm having is simple, i need to get the network logon name of the user.
at the moment i'm using the following code.
when I run this code, it gives me "NT AUTHORITY\NETWORK SERVICE" as the username instead of DKA2, my actual username. how do i get this to show my actual username
The idea of the page is basically to let a user to select items off a list and thenthen send the order to an e-mail address.
the problem i'm having is simple, i need to get the network logon name of the user.
at the moment i'm using the following code.
Code:
Dim uname As String
Dim myDetails As System.Security.Principal.WindowsIdentity = GetCurrent()
If Not myDetails.IsAnonymous Then
uname = myDetails.Name
End If