Monday, 15 September 2014

asp.net mvc - render view in the class library project -



asp.net mvc - render view in the class library project -

i have view in views folder , have class library project. in project want render view string.

public class dumpservice { public void method() { var renderedview = somemethodforrenderingview(); } }

i have found answers, there used controller context don't have in class library project. how can this?

you need read view text - open , read text, , parse :

razor.parse

asp.net-mvc

No comments:

Post a Comment