I want to get user name using Windows authentication
Actually I implemented \"Sign in as different user\",when click this button Windows security will appear there w
You can get the user's WindowsIdentity object under Windows Authentication by:
WindowsIdentity identity = HttpContext.Current.Request.LogonUserIdentity;
and then you can get the information about the user like identity.Name.
Please note you need to have HttpContext for these code.