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

Indexing in SQL -

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -