<body>
<div id="header">
<div class="title">SPORTS STORE</div>
</div>
<div id="categories">
<% Html.RenderAction("Menu", "Nav"); %>
</div>
<div id="content">
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
</div>
</body>
This is a sample code from Steven Sandersons' book "Pro ASP.NET MVC Framework."
This code wokrs with mvc v1 and mvcContLib. What it does, it renders "Menu()" view of "Nav : Controller". Since ASP.NET MVC v2 includes the Partial() and RenderPartial() functionality, i tried to implement it, but this code doesnt work. I tried to modify it in a sever ways, but it seems there's no overload function that renders patrial view, taking as parameters: 1) Controller name 2) View name
I'm sure i'm not the first who is implementing RenderAction() in this way, so, there must be a workaround. Please help.
Thanks, Ilya.