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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -