views:

71

answers:

1

The link for logging in looks like this:

<%= Html.ActionLink("Log On", "LogOn", "Account") %>

which yields the following link in the browser:

http://localhost:2300/Account/LogOn

However, if I switch to an Area, such as Content, the Login link now looks like this:

http://localhost:2300/Content/Account/LogOn

...which fails of course, because there is no AccountController in the Content Area.

How do I change my call to ActionLink so that it yields http://localhost:2300/Account/LogOn ?

+1  A: 

Try RouteLink instead.

Gonzalo