asp.net mvc - Pass ViewData to RenderPartial -
I am trying to call this method:
Renderparty extension. Method (HtmlHelper, String, Object, View DotAxpectory)
But I do not see any way to create a view data in expressions such as:
& lt;% HTML.RenderPartial ("blog post", post, new {ForPrinting = True})%>
How to consider any?
This works me:
HTML .RenderPartial ("BlogPost", Model, New ViewDataDictionary {{"ForPrinting", "true"}});%>
Comments
Post a Comment