ASP.net MVC - Sharing partials between areas ASP.net MVC - Sharing partials between areas asp.net asp.net

ASP.net MVC - Sharing partials between areas


You can specify the area (or lack of one) in the ActionLink() method:

Html.ActionLink(@Messages.Logout, "Logout", "Account", new { Area = "" }, new{})

This will ensure the link does not resolve to a URL within the current area.