ShaneKm
ShaneKm

Reputation: 21308

mvc render partial view without httpContext or controller context

Is it possible to render partial view without ViewContext or ControllerContext?

Upvotes: 5

Views: 2710

Answers (1)

Britton
Britton

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

Related Questions