PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/CSASPNETMVCCustomActionFilter/Views/Shared/LogOnUserControl.ascx

#
ASP.NET | 14 lines | 14 code | 0 blank | 0 comment | 2 complexity | c41bc9682036c464bcf2c4fc980b0caa MD5 | raw file
 1<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
 2<%
 3    if (Request.IsAuthenticated) {
 4%>
 5        Welcome <b><%= Html.Encode(Page.User.Identity.Name) %></b>!
 6        [ <%= Html.ActionLink("Log Off", "LogOff", "Account") %> ]
 7<%
 8    }
 9    else {
10%> 
11        [ <%= Html.ActionLink("Log On", "LogOn", "Account") %> ]
12<%
13    }
14%>