views:

10

answers:

0

Hi I am new to aspnet and MVC,

I am developing an web application, which may over time have a number of sub applications, e.g. blog, shop, admin etc.

I have started off creating an area for each of these sub-applications.

I want to have a common navigation menu at the top of all pages within the application and a sub-application menu on the left hand side of the page for each sub-application.

I have created content placed holders in the master page, which I am currently 'hardcoding' in each view page in the main view folder and also the area view folders.

However, when I click on a tab when in a view page in one of the areas I can successfully go to the other areas - sub-applications and within an area using

In the main index.aspx I have this pseudocode:

Html.ActionLink("Home","Index","Home") Html.ActionLink("Blog","Index","Blog",new { area = "Blog" }, null) Html.ActionLink("Shop","Index","Shop",new { area = "Shop" }, null)

In the blog area index.aspx I have this pseudocode:

Html.ActionLink("Home","Index","Home", ?????????) -- what to do here as not an area but main.... Html.ActionLink("Blog","Index","Blog") Html.ActionLink("Shop","Index","Shop",new { area = "Shop" }, null)

How should this be coded, or am I going down the wrong path and should I not use areas?

Cheers,