asp.net考前复习——信息服务身份验证
if(User.Identity.IsAuthenticated)
{
Response.Write(User.Identity.Name);
Response.Write(User.Identity.AuthenticationType);
}
else
{
Response.Write("Anonymous access");
}
Response.Write(WindowsIdentity.GetCurrent().Name);
-------------------------------------------------
!!!作者:木由水 http://www.cnblogs.com/muyoushui