User.Identity.Name (VB.net) : Authentication « Development « ASP.Net






User.Identity.Name (VB.net)

<%@ Page Language="vb" %>
<html>
   <head>
      <title>User property example</title>
      <script runat="server">
         Sub Page_Load()
            Message.Text = "Authenticated: " & User.Identity.IsAuthenticated & "<br/>"
            Message.Text &= "User Name: " & User.Identity.Name
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>
           
       








Related examples in the same category

1.Displaying the authentication status in ASP.NET
2.User.Identity.IsAuthenticated (VB.net)
3.Context User Identity Name (VB.net)
4.Get current user name and Authentication Type (VB.net)
5.Basic Authentication (C#)
6.Form based login (C#)
7.Form and database based authentication (C#)