/Visual Studio 2008/CSASPNETMVCCustomActionFilter/Views/Shared/LogOnUserControl.ascx
ASP.NET | 14 lines | 14 code | 0 blank | 0 comment | 2 complexity | c41bc9682036c464bcf2c4fc980b0caa MD5 | raw file
- <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
- <%
- if (Request.IsAuthenticated) {
- %>
- Welcome <b><%= Html.Encode(Page.User.Identity.Name) %></b>!
- [ <%= Html.ActionLink("Log Off", "LogOff", "Account") %> ]
- <%
- }
- else {
- %>
- [ <%= Html.ActionLink("Log On", "LogOn", "Account") %> ]
- <%
- }
- %>