getting LOGON USER in C#

  • Thread starter Thread starter Patrick Olurotimi Ige
  • Start date 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!!!!!!!!!!
 
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

Back
Top