You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mvccontrib-discuss
Is there any way in MVCContrib that I can render a view to a string
from inside a controller method? I can do it using the methods
outlined in these posts:
... but I was wondering if this is baked in MVCContrib by now.
Jon
Jeremy Skinner
unread,
Feb 20, 2009, 12:53:07 PM2/20/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mvccontri...@googlegroups.com
Since Preview 5 the IView interface's Render method can take a TextWriter to which the view can be rendered.
Unfortunately, the WebFormViewEngine does not make use of this parameter due to limitations of the underlying webforms implementation. With other view engines you could pass a StringWriter to the view.Render method to capture the output, but with the WebForms view engine you're stuck with the BlockRenderer.