Author: drl | Posted on: 12/22/2009 9:21:11 AM | Views : 659

System.Security.Principal.WindowsPrincipal p = System.Threading.Thread.CurrentPrincipal as System.Security.Principal.WindowsPrincipal;
string strUsername = p.Identity.Name;
 
I am using the above code to get the username. This works fine in the development environment but when I copy all my files to the virtual directory and run it using the browser, the username is not obtained.
Can anyone help? ...

Go to the complete details ...