root/trunk/eCard/eCardMVC/Platnosci/Views/Shared/LogOnUserControl.ascx @ 866

Wersja 866, 0.8 KB (wprowadzona przez alina, 16 years temu)

re #215

Line 
1<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
2<%
3    if (Request.IsAuthenticated) {
4%>     
5        <asp:Label ID="lab1" runat="server" Text="<%$Resources:tlumaczenia,witaj%>"></asp:Label>
6        <b><%= Html.Encode(Page.User.Identity.Name) %></b>!
7        <asp:Label ID="lab2" runat="server" Text="<%$Resources:tlumaczenia,Wyloguj%>" Visible="false"></asp:Label>
8        <%string wylogujsie = lab2.Text; %>
9        [ <%= Html.ActionLink(wylogujsie, "LogOff", "Account") %> ]
10<%
11    }
12    else {
13%>      <asp:Label ID="lab3" runat="server" Text="<%$Resources:tlumaczenia,Zaloguj%>" Visible="false"></asp:Label>
14        <%string loginek = lab3.Text; %>
15        [ <%= Html.ActionLink(loginek, "LogOn", "Account") %> ]
16<%
17    }
18%>
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.