【发布时间】:2011-02-01 22:11:06
【问题描述】:
我正在尝试使用 RenderPartial 发送匿名类型,但这种方法只允许我 发送 (string, object , viewDataDictionary) or (string) or (string, object)。
我正在使用 MVC 1.0。我在这里有什么遗漏吗?
这是我想要得到的工作:
<% Html.RenderPartial("ProductDisplay", product, new { DisplayAddToCartButton = false }); %>
感谢您的帮助
【问题讨论】:
标签: model-view-controller html-helper anonymous-types