15 lines
352 B
Plaintext
15 lines
352 B
Plaintext
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||
|
<%
|
||
|
if (Request.IsAuthenticated) {
|
||
|
%>
|
||
|
Welcome <b><%: Page.User.Identity.Name %></b>!
|
||
|
[ <%: Html.ActionLink("Log Off", "LogOff", "Account") %> ]
|
||
|
<%
|
||
|
}
|
||
|
else {
|
||
|
%>
|
||
|
[ <%: Html.ActionLink("Log On", "LogOn", "Account") %> ]
|
||
|
<%
|
||
|
}
|
||
|
%>
|