Changed partial to ensure the area from the resulting link if present in the current request

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041472
This commit is contained in:
loudej
2009-11-20 00:58:06 +00:00
parent af13d15069
commit 676a7d15a7

View File

@@ -2,13 +2,17 @@
<%
if (Request.IsAuthenticated) {
%>
Welcome <b><%=Html.Encode(Page.User.Identity.Name)%></b>!
[ <%=Html.ActionLink("Log Off", "LogOff", "Account")%> ]
Welcome <b>
<%=Html.Encode(Page.User.Identity.Name)%></b>! [
<%=Html.ActionLink("Log Off", "LogOff", "Account", new { area = "" }, new { })%>
]
<%
}
else {
%>
[ <%=Html.ActionLink("Log On", "LogOn", "Account")%> ]
%>
[
<%=Html.ActionLink("Log On", "LogOn", "Account", new{area=""}, new{})%>
]
<%
}
%>