Jump to content


Photo

Sabendo Que Usuário Está Conectado No Windows


  • Faça o login para participar
Nenhuma resposta neste tópico

#1 wozniak

wozniak

    Hands-On Founder

  • Usuários
  • 578 posts
  • Sexo:Masculino
  • Localidade:Rio de Janeiro / RJ

Posted 09/12/2003, 16:13

arquivo default.aspx


<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+




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq