|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<ul>
<% if (HttpContext.Current.User.Identity.IsAuthenticated)
{ %>
<li><%= Html.ActionLink("Users", "Users", "Admin")%></li>
<li><%= Html.ActionLink("New User", "Register", "Account")%></li>
<li><%= Html.ActionLink("Roles", "EditRoles", "Admin")%></li>
<li><%= Html.ActionLink("Permissions", "Permissions", "Admin")%></li>
<%}
else
{
%>
<li><%= Html.ActionLink("Home", "Index", "Home")%></li>
<li> <%= Html.ActionLink("Log On", "LogOn", "Account")%></li>
<%} %>
</ul>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I love programming, reading, and meditation. I like to explore management and productivity.