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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top