开发者

Can you render a partial result in a controller?

开发者 https://www.devze.com 2022-12-11 01:06 出处:网络
I am wondering is there a way to r开发者_JAVA技巧ender a partial view in the controller. So like you have a partial view and instead of returning it you render it right there in that controller method

I am wondering is there a way to r开发者_JAVA技巧ender a partial view in the controller. So like you have a partial view and instead of returning it you render it right there in that controller method and store the result into a string or something like that?


Take a look at the earlier stackflow thread at Render a view as a string

Also, http://www.klopfenstein.net/lorenz.aspx/render-partial-view-to-string-in-asp-net-mvc

I haven't tried it personally though... good luck.

0

精彩评论

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