flush96
flush96

Reputation: 125

Executing a razor view dynamically

Is there a way to execute a razor view dynamically? If I have the view code as a string, can I execute it and pass it a model as a parameter for example?

Upvotes: 5

Views: 888

Answers (1)

John Weldon
John Weldon

Reputation: 40759

This isn't exactly what you asked about, but has some interesting info on using dynamically generated templates: http://buildstarted.com/2010/09/29/razor-view-engine-without-mvc-at-all/

Upvotes: 5

Related Questions