How can you detect the Windows' user name in ASP.NET?

 Posted by Ddd on 3/13/2011 | Category: ASP.NET Interview questions | Views: 2640 | Points: 40

It can be done using this code snippet?

  WindowsPrincipal w = new WindowsPrincipal(WindowsIdentity.GetCurrent());


First include the namespace: System.Security.Principal

| Alert Moderator 

Comments or Responses

Login to post response