endrec
asked on
ASP.NET/VB.net Equivalent to the Old VBScript Request.ServerVariables("LOGON_USER")
Is there an ASP.NET platform (in VB.NET or C#,. VB preference) equivalent to the old Request.ServerVariables("L OGON_USER" ) that was used to obtain NT Usernames (used in an intranet environment)?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try this Link http://forums.asp.net/thread/1525980.aspx
Context.User.Identity.Name
ASKER
Codeclay's solution works! How would I store this Request.ServerVariables("L OGON_USER" ) as another session variable (the domain may be stripped eventually) called NTUsername?
C#
Session["NTUsername"]= Request.ServerVariables[LO GON_USER"] ;
VB.NET
Session("NTUsername")= Request.ServerVariables("L OGON_USER" )
?
Session["NTUsername"]= Request.ServerVariables[LO
VB.NET
Session("NTUsername")= Request.ServerVariables("L
?
http://www.codeproject.com/useritems/How_to_NT_User_Name.asp