assuming that you're not using ASP.NET forms authentication mode,
(if you do, you can get username from session)
try using this code:
Dim userName() As String = Split(HttpContext.Current.User.Identity.Name,"\")
userName(0) '// contains Machine name or Domain name
userName(1) '// contains Username
--
Hope this helps,
Zeeshan Mustafa, MCSD
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
Hi,
For tracing and other thing I need to know the username of the user who is
logged in to the pc on which (s)he is running my ASPX page.
I was using:
System.Security.Principal.WindowsIdentity.GetCurre nt.Name()
But that provides me with: SERVERNAME\ASPNET
I was hoping for the windows login name of the user.
Is there another way to get this?
rg,
Eric