Reputation: 1865
I have a MVC application, using areas and a masterpage. I have a single MasterPage i'd like to use in all areas placed in PRJ\Views\Shared. My master page have several RenderAction calls to actions inside a controller in my root PRG Controllers folder. Everything works great if i'm referencing the masterpage from my views folder but not for my views inside the areas. I guess it expects the controllers and actions to be inside the Areas!!!.
Please help-me in this one.
Thank U all.
Upvotes: 1
Views: 800
Reputation: 3074
You should be able to use
@Html....("A Link", "Action", "Controller", new { Area = "" }, null);
This will always point to an area-less controller/action
Upvotes: 1