ASP.NET Windows域用户身份验证

在配置节点中authentication 元素 配置 ASP.NET 身份验证方案,该方案用于识别查看 ASP.NET 应用程序的用户。


 
<authentication 
   mode="[Windows|Forms|Passport|None]"
> 
   <forms>...</forms>
   <passport/>
</authentication>

Windows 域用户身份验证

VS2010 用 Page.User.Identity 完全没有问题

VS2012 中用Page.User.Identity 在调试过程中 需要注意 当Page.User.Identity.Name 获取为空的时候,你需要检查项目的属性 因为2012 自带 开启IIS 本地调试 需要将开发服务器设置为VISUAL STUDIO 开发服务器即可

不是世界太黑,而是你不够白
原文地址:https://www.cnblogs.com/dinghuijun/p/3833501.html