Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
- <%
- if (Request.IsAuthenticated) {
- %>
- Welcome <b><%= Html.Encode(Page.User.Identity.Name) %></b>!
- [ <%= Html.ActionLink("Log Off", "LogOff", "Account") %> ]
- <%
- }
- else {
- %>
- [ <%= Html.ActionLink("Log On", "LogOn", "Account") %> ]
- <%
- }
- %>
Add Comment
Please, Sign In to add comment