asp.net中, 如何在后台获取访问这个页面的用户的名字?

asp.net中, 如何在后台获取访问这个页面的用户的名字?
在集成安全认证下, 能够利用如下代码获取:
System.Security.Principal.WindowsIdentity wi  =  (System.Security.Principal.WindowsIdentity)System.Web.HttpContext.Current.User.Identity.Name;
或者直接用:
System.Web.HttpContext.Current.User.Identity.Name;
相关文章
相关标签/搜索