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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -