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 开发服务器即可

posted @ 2014-07-09 14:10  skin33  阅读(1860)  评论(0编辑  收藏  举报