<html> <head> <script language="vb" runat="server"> Sub Page_Load(Src As Object, E As EventArgs) lblUser.Text = User.Identity.Name lblType.Text = User.Identity.AuthenticationType End Sub </script> </head> <body> <font face="Verdana" size="4" color="navy"> <b>Atutenticação do Windows</b></font><hr> <table border=1 bordercolor="#FFFFFF" bgcolor="Silver" cellspacing=0 cellpadding=4> <tr> <td><b>Usuário conectado</b></td> <td><asp:label id=lblUser runat=server/></td> </tr> <tr> <td><b>Tipo de Autenticação atual</b></td> <TD><asp:label id=lblType runat=server/></TD> </tr> </table> </body> </html>
arquivo web.config
<configuration> <system.web> <authentication mode="Windows" /> </system.web> </configuration>
é isso ae galera t+