Displaying the username of the authenticated user : LoginStatus « Login Security « ASP.Net






Displaying the username of the authenticated user

 
<%@ Page Language="VB" %>
   
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Login or Logout</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:LoginStatus ID="LoginStatus1" Runat="server" />
        <p><asp:LoginName ID="LoginName1" 
                          Runat="server"
                          Font-Bold="True" 
                          Font-Size="Large"/></p>
    </form>
</body>
</html>

 








Related examples in the same category

1.Login and logout features of the LoginStatus control
2.outputs the name of the currently logged user as authenticated by the ASP.NET application
3.Welcome page