this is my renderparial
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<a href='<%= Url.Action("Edit", new {id=Model.ID}) %>'>
<img src="<%= Url.Content("~/img/pencil.png") %>" alt="Edit" width="16" /></a>
I basically want to call it in this way:
<% Html.RenderPartial("edit", new { ID = item.hlpb_ID }); %>
however, this gives me a runtime error 'object' does not contain a definition for 'ID'
so how do I send an on the fly created nameless object (because i guess thats what it is) to a renderpartial? like this works for Url.Action