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






Context User Identity Name (VB.net)

<%@ Page Language="vb" %>
<html>
   <head>
      <title>Context property example</title>
      <script runat="server">
         Sub Page_Load()
            Message.Text = "Currently logged in as: " & _
               Context.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.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#)