c# - Render view as string in MVC 6 -


this question has answer here:

after long search solution problem, found mvc5 , outdated solutions.

now in asp.net 5 beta 7, there way render view string variable ?

i need render view show in bootbox javascript control (like modal windows).

the mvc 5 solutions not work in version 6 because there no "viewengine" class in there. look:

enter image description here

and razor object can´t found:

enter image description here

you can use approach (see renderpartialviewtostring): https://stackoverflow.com/a/32577016/2631076


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -