I am using MVC 2, and having a slight issue with the ActionLink not going to the correct controller
The following line of code, which displays a logoff link
<%= Html.ActionLink("Log Off", "LogOff", "Account", new { @class = "loginStatus" })%>
It does not appear to be going to the Account controller
The link it is make is:
http://localhost:63262/Centre/Schedule/LogOff?Length=7
it should be
http://localhost:63262/Authentication/Account/LogOff?Length=7
Any ideas?
I found the following link which answers my question, it’s more to do with Areas and Routes:
http://odetocode.com/Blogs/scott/archive/2009/10/13/asp-net-mvc2-preview-2-areas-and-routes.aspx
Here is the solution to my issue