Web.config 文件
<authentication mode="Windows" />
<authorization>
<allow users ="*" />
</authorization>
IIS 权限
(Unchecked)Enable ananymouse access
(Checked)Integrated windows authentication
C#代码,
welcomeUser.InnerText = Request.ServerVariables.Get("LOGON USER");
我缺少什么能够显示 Windows 用户 ID ?