<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <% if (Request.IsAuthenticated) { %> Witaj <%= Html.Encode(Page.User.Identity.Name) %>! [ <%= Html.ActionLink("Wyloguj", "Logoff", "Account") %> ] <% } else { %> [ <%= Html.ActionLink("Login", "Login", "Account") %> ] <% } %>