How to dynamically load aspx code from a database?
Posted
by labilbe
on Stack Overflow
See other posts from Stack Overflow
or by labilbe
Published on 2010-03-31T22:14:18Z
Indexed on
2010/03/31
22:23 UTC
Read the original article
Hit count: 350
I have content like this stored in a database
<p>This a sample text. <%= Html.ActionLink("test", "myaction", "mycontroller") %></p>
The content is part of my data repository, that is the reason I want to keep it inside the database. I would like to know how it is possible to render it and execute it at compile time.
I am using it on an asp.net mvc project.
Thank you.
© Stack Overflow or respective owner