Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
ASP.NET
<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>
Posted
v3
Comments
ZurdoDev 8-Dec-14 12:45pm    
What exactly do you mean? The properties are runat, ViewStateMode, and EnableViewState. You put them there.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900