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?
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With