getting LOGON USER in C#

  • Thread starter Patrick Olurotimi Ige
  • Start date
P

Patrick Olurotimi Ige

To get the logon user i use in VB.NET and it works:=
<%= User.Identity.Name %>
But when i use the same in C# it doesn't work why?
Am i doing something wrong!!!!!!!!!!
 
P

Patrick Olurotimi Ige

Yes i denied that.
So User.Identity.Name doesn't work in C# but in VB it does..
I used request.ServerVariables[LOGON_USER]; and it works for both C# and
VB.NET.
Patrick
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top