<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <% if (Request.IsAuthenticated) { %> <%= Html.Encode(Page.User.Identity.Name) %>! <%string wylogujsie = lab2.Text; %> [ <%= Html.ActionLink(wylogujsie, "LogOff", "Account") %> ] <% } else { %> <%string loginek = lab3.Text; %> [ <%= Html.ActionLink(loginek, "LogOn", "Account") %> ] <% } %>