user.Identity.Name alternative?

  • Thread starter Thread starter Jason Shohet
  • Start date Start date
J

Jason Shohet

I need to get the logged on user, and I'm using this code:

label1.Text = Page.User.Identity.Name;

Unfortunately there are some people at the organization who I cannot
determine who they are, when they log on to a machine. It must be how they
are set up in active directory I guess. I was wondering, perhaps I should
be using Page.User.Username ? Or some other alternative.... Thanks
for any advice

Jason Shohet
 
I believe it is Request.ServerVariables["LOGON_USER"], just in case...


this is another way of getting the login,

Session["LOGON_USER"]

hope this helps
 

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