<%
If Request.IsAuthenticated Then
%>
Welcome <%: Page.User.Identity.Name %>!
[ <%: Html.ActionLink("Log Off", "LogOff", "Account")%> ]
<%: ViewData("Message") %>
To learn more about ASP.NET MVC visit http://asp.net/mvc.
<%
Else
%>
[ <%: Html.ActionLink("Log On", "LogOn", "Account")%> ]
<%
End If
%>