S
SirPoonga
I have been trying to figure out how to get the user login name of the
user using an asp.net page. This is for an intranet. I got as far as
doing something like this:
Dim wpMain as WindowsPrincipal
wpMain = new WindowsPrincipal(WindowsIdentity.GetCurrent())
Label1.Text = wpMain.Identity.Name
However, that will display <COMPUTERNAME>\ASPNET. I don't need the
ASPNET user, I need the user who is logged into the computer.
Any ideas?
user using an asp.net page. This is for an intranet. I got as far as
doing something like this:
Dim wpMain as WindowsPrincipal
wpMain = new WindowsPrincipal(WindowsIdentity.GetCurrent())
Label1.Text = wpMain.Identity.Name
However, that will display <COMPUTERNAME>\ASPNET. I don't need the
ASPNET user, I need the user who is logged into the computer.
Any ideas?