开发者

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

开发者 https://www.devze.com 2023-01-21 19:29 出处:网络
I have dynamic strings, for example hello bold italic {0} xxx {0}y开发者_如何学运维yy {0} etc...,

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

精彩评论

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