Thursday 15 July 2010

c# - How do I get Absolute Root Links in ASP.NET MVC 2.0 beta Areas? -


The login link looks like this:

  <% = html ActionLink ("Logon", "Logon", "Account")%>  

which gives the following link in the browser:

  http: // localhost: 2300 / account / logon  

However, if I switch to area , such as content , then the login link looks like this now:

  http: / / Localhost: 2300 / content / account / logon  

... which definitely fails because any account controller in content Code> not> field.

How do I change my call in the ActionLink so that it is http: // localhost: 2300 / account / logon

Try instead.


No comments:

Post a Comment