![](/img/trans.png)
[英]How to get the username of windows authenticated user in asp.net?
[英]how to find client side windows authenticated user name in ASP.NET
我的代碼部署在服務器中,現在當用戶進入網站時在客戶端中進行部署,然后應顯示該用戶的Windows身份驗證用戶名。 請幫助。
您可以閱讀Windows身份驗證的用戶
string authuser;
authuser = HttpContext.Current.User.Identity.Name;
之后,您可以從活動目錄中讀取有關該用戶的更多信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.