<div class="float-right"> <section id="login"> <asp:LoginView runat="server" ViewStateMode="Disabled"> <AnonymousTemplate> <ul> <li><a id="loginLink" runat="server" href="~/Account/Login">Log in</a></li> </ul> </AnonymousTemplate> <LoggedInTemplate> <p> Hello, <asp:LoginName runat="server" CssClass="UserName" /> ! <asp:LoginStatus runat="server" LogoutAction="Redirect" LogoutText="Log off" LogoutPageUrl="~/Account/Login.aspx" /> </p> </LoggedInTemplate> </asp:LoginView> </section> <nav> <ul id="menu"> <li><a runat="server" href="~/">Home</a></li> <li><a runat="server" href="TF_new.aspx">Schedule Trip</a></li> <li><a runat="server" href="~/About">Help</a></li> </ul> </nav> </div> </div> </header> <div id="body"> <asp:ContentPlaceHolder runat="server" ID="FeaturedContent" /> <section class="content-wrapper main-content clear-fix"> <asp:ContentPlaceHolder runat="server" ID="MainContent" /> </section> </div>
<li id="homeItem" runat="server" ><a runat="server" href="~/">Home</a></li>
homeItem.Visible = HttpContext.Current.User.Identity.IsAuthenticated;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)