using logon_user

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, i'm new to asp.net and here's what i'm trying to do:

i used Response.Write(Request.ServerVariables("LOGON_USER")) to get the username of user who logged on to the domain, there's no error but i only get a blank page. Is there any solution to this? thanx
 
Try

HttpContext.Current.User.Identity.Name

Bill Green


Helmi said:
hi, i'm new to asp.net and here's what i'm trying to do:

i used Response.Write(Request.ServerVariables("LOGON_USER")) to get the
username of user who logged on to the domain, there's no error but i only
get a blank page. Is there any solution to this? thanx
 
this will only tell you the user if you have IIS configured to NOT use
Anonymous Authentication, in other words they need to log into the SITE

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


Helmi said:
hi, i'm new to asp.net and here's what i'm trying to do:

i used Response.Write(Request.ServerVariables("LOGON_USER")) to get the
username of user who logged on to the domain, there's no error but i only
get a blank page. Is there any solution to this? thanx
 
Back
Top