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

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2021-10-26
  • 2022-12-23
  • 2021-08-19
  • 2021-11-25
相关资源
相似解决方案