【发布时间】:2010-01-22 13:12:06
【问题描述】:
我正在尝试调用此方法:
RenderPartialExtensions.RenderPartial Method (HtmlHelper, String, Object, ViewDataDictionary)
http://msdn.microsoft.com/en-us/library/dd470561.aspx
但我没有看到任何在表达式中构造 ViewDataDictionary 的方法,例如:
<% Html.RenderPartial("BlogPost", Post, new { ForPrinting = True }) %>
有什么想法吗?
【问题讨论】: