c# - Render view as string in MVC 6 -
this question has answer here:
- render razor view string in asp.net 5 2 answers
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:
and razor object can´t found:
you can use approach (see renderpartialviewtostring
): https://stackoverflow.com/a/32577016/2631076
Comments
Post a Comment