<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> <!DOCTYPE html> <script runat="server"> /* protected void Page_Load(object sender, EventArgs e) { if ( HttpContext.Current.User.Identity.IsAuthenticated) { testLink.Visible = true; } }*/ </script> <html lang="en"> <head > <meta charset="utf-8" /> <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title> <link href="<%: Url.Content("~/favicon.ico") %>" rel="shortcut icon" type="image/x-icon" /> <%: Styles.Render("~/Content/css") %> <%: Scripts.Render("~/bundles/modernizr") %> <style type="text/css"> .style1 { text-align: justify; color: #99CCFF; } .newStyle1 { font-family: Arial; } .style2 { font-family: Arial; color: #99CCFF; background-color: #FFFFFF; } </style> </head> <body > <header> <div class="content-wrapper"> <div class="float-left"> <img src="../../Image/Capture2_logo.PNG" style="height: 77px" /> </div> <div class="float-right"> <section id="login"> <%: Html.Partial("_LoginPartial") %> </section> <nav> <p class="style1"><h1><span class="style2">Novo Nordisk</span></h1></p><hr /> <ul id="menu"> <li> <span id="testLink" runat="server" visible="false"> <%: Html.ActionLink("test", "test", "Home")%> </span> </li> <%if (!Request.IsAuthenticated) { %> <li><%: Html.ActionLink("test5", "test5", "Home")%></li> <li><%: Html.ActionLink("Home", "Index", "Home")%></li> <li><%: Html.ActionLink("Controle qualité", "CQ", "Home")%></li> <li><%: Html.ActionLink("Assurance qualité", "AQ", "Home")%></li> <li><%: Html.ActionLink("Espace administrateur", "Admin", "Home")%></li> <li><%: Html.ActionLink("Reporting", "Reporting", "Home")%></li> <li><%: Html.ActionLink("Contact", "Contact", "Home")%></li> <%} %> <% else { %> <div class="float-left"> <p>© <%: DateTime.Now%> </p> </div> </ul> <% } %> </nav> </div> </div> </header> <div id="body"> <asp:ContentPlaceHolder ID="FeaturedContent" runat="server" /> <section class="content-wrapper main-content clear-fix"> <asp:ContentPlaceHolder ID="MainContent" runat="server" /> </section> </div> <footer> <div class="content-wrapper"> <div class="float-left"> <p>© <%: DateTime.Now.Year %> - My ASP.NET MVC Application</p> </div> </div> </footer> <telerik:RadCodeBlock runat="server"> </telerik:RadCodeBlock> <%: Scripts.Render("~/bundles/jquery") %> <asp:ContentPlaceHolder ID="ScriptsSection" runat="server" /> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)