How do I make a static link in a view? (using ASP.NET MVC2)
I am working on the site navigation, and have basically 4 main areas. These are split into sub areas, and one controller looks after the entire "main area".
So basically after clicking on a main area, i'd like to display a list of links to the different sub areas. I created the pages just by right clicking and adding views then putting a list of links on them. But how do I link to this with the <%: Html.ActionLink %>
... it seems I can't link directly to .aspx
's
edit:
I have tried <%: Url.Content("~/Path/to.aspx") %>
and that is just outputting text...
edit: when I link directly to it just using <a href="......aspx">Go</a>
and click on it, I get
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
But problem is I know it is definetly there.