Reputation: 21308
Is it possible to render partial view without ViewContext or ControllerContext?
Upvotes: 5
Views: 2710
Reputation: 2981
You can try the Razor Generator Visual Studio Extension. Basically you run the custom tool on your view and it will generate a class that you can pass a model into and it will generate a string.
Upvotes: 4