i want the user name of the that id from which user is logged in system.
System.Security.Principal.WindowsPrincipal p = System.Threading.Thread.CurrentPrincipal as System.Security.Principal.WindowsPrincipal;
string strName = p.Identity.Name;
I have written above code but not getting the user name but it is giving the alias name