简体   繁体   中英

how to find client side windows authenticated user name in ASP.NET

My code is deployed in the server, now in the client side when a user enters in to the website, then the user's windows authenticated user name should be displayed. Kindly help.

You can read the windows authenticated user with

string authuser;
authuser = HttpContext.Current.User.Identity.Name;

After that you can read more informations about the user from the active directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM