开发者

Insert Html.RenderAction("CartSummary", "ShoppingCart") To Dynamic String?

I have dynamic strings, for example

hello bold italic {0} xxx {0}y开发者_如何学运维yy {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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜