I have created a login page when the user logs in it will take to a specified page with the text "welcome Username" and logout link on the right.but am not getting any logout link but instead itz login link which functions as a logout link though.and no message as "welcome Username"
Below is the code I have used:
Below is the code I have used:
Code:
<div class="loginDisplay">
<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
<AnonymousTemplate>
[<a href="~/Account/Login.aspx" id="HeadLoginStatus" runat="server">Log In</a>]
</AnonymousTemplate>
<LoggedInTemplate>
<span>Welcome</span>
Welcome
<span class="bold">
<asp:LoginName ID="HeadLoginName" runat="server" FormatString="Welcome {0}"/>
</span>!
[<asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/Account/Login.aspx" />]
</LoggedInTemplate>
</asp:LoginView>
</div>
Comment