ASP.NET MVC 2
I try to write a view whose general parameter dynamic, and then pass this dynamic model into a partial view
<%@ Page Title="" ..... Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
and then
<% Html.RenderPartial("MenuTabsPartial", Model); %>
but i get an error
'System.Web.Mvc.HtmlHelper' does not have an applicable method named "RenderPartial", but by this name it has an extension method ...
I fully understand that extension methods cannot be sent with dynamic parameters.
My question is: is there some kind of MVC work?
This extension method must be defined in public static calss somewhere, right? Is it possible to call RenderPartial from there, as you can with linq:
Enumerable.Where(stringArray, s => s.StartsWith("Adam"));
source
share