using logon_user

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
 
B

Bill Green

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
 
C

Curt_C [MVP]

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top