How to render View from a string?

Posted by Fleents on Stack Overflow See other posts from Stack Overflow or by Fleents
Published on 2010-06-09T08:47:24Z Indexed on 2010/06/10 3:32 UTC
Read the original article Hit count: 234

Filed under:

I have a string like this, stored in the database:

< %@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" % >
< %= Html.Encode("< strong >hello< /strong >") % >

How can I render this to the page?

© Stack Overflow or respective owner

Related posts about mvc