views:

17

answers:

2

I have dynamic strings, for example

"hello bold italic {0} xxx {0}yyy {0} etc...",

"abcd {0} how to xyz {0} newline {0}..etc..."

and more

How to insert <% Html.RenderAction("CartSummary", "ShoppingCart"); %> to the dynamic string at the {0} position?

Thank You.

A: 

Html.RenderAction writes directly to the response. You could use Html.Action which returns an MvcHtmlString.

Darin Dimitrov
A: 

r u tryin' to use :

       <% string.format("{0} bla bla {0} bla", Html.RenderAction("CartSummary","ShoppingCart"));%>
FosterZ