关于authentication 元素(ASP.NET 设置架构)

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

关于authentication 元素(ASP.NET 设置架构)

关于authentication 元素(ASP.NET 设置架构),布布扣,bubuko.com

关于authentication 元素(ASP.NET 设置架构)

上一篇:log4net使用详解


下一篇:疑问_网址参数不同的时候改如何选择_MySQL_芬兰站