<asp:LoginView runat="server" ViewStateMode="Disabled" EnableViewState="True"> <anonymoustemplate> <ul> <li><a id="registerLink" runat="server" href="~/Account/Register">Register</li> <li><a id="loginLink" runat="server" href="~/Account/Login">Log in</li> </ul> </anonymoustemplate> <loggedintemplate> <p> Hello, <a runat="server" class="username" href="~/Account/Manage" title="Manage your account"> <asp:LoginName runat="server" CssClass="username" /> ! <asp:LoginStatus runat="server" LogoutAction="Redirect" LogoutText="Log off" LogoutPageUrl="~/" /> </p> </loggedintemplate>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)