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);

 

posted @ 2009-12-10 23:12  木由水  阅读(183)  评论(0编辑  收藏  举报