if(User.Identity.IsAuthenticated)
{
Response.Write(User.Identity.Name);
Response.Write(User.Identity.AuthenticationType);
}
else
{
Response.Write("Anonymous access");
}
Response.Write(WindowsIdentity.GetCurrent().Name);
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