I would like to create a HTML helper that works the same as Html.RenderPartial except I would like the partial to be rendered from ViewData or a model object and not a file on the filesystem.
example:
<% Ht开发者_C百科ml.RenderVirtualPartial("Name", Model.MyPartialContent") %>
I can return string in my helper but i need to have code tags (ie <%= DateTime.Now %>) interpreted so assume I need do some kind of binary output stream writer?
thanks in advance
-Mark
why not add the futures and you can use renderAction, or you can render partial put pass a model over also
精彩评论