Error in Listing 10.4?

0 views
Skip to first unread message

Ed

unread,
Jun 28, 2010, 11:47:56 AM6/28/10
to mvc2inaction-discuss
For displaying a child action, shouldn't this code be using
Html.RenderAction() instead of Html.Action()?

Ed

Jeremy Skinner

unread,
Jun 28, 2010, 11:54:54 AM6/28/10
to mvc2inacti...@googlegroups.com
Both will work - RenderAction renders directly to the response stream while Action returns a string.

Jeremy


--
--------------------
Please feel free to comment on the progress of the book, the content, and the code samples.  All code and text is available on the book's GitHub site at http://github.com/jeffreypalermo/mvc2inaction.  We hope developing this book out in the open and with your feedback makes it a great book for the community.

Reply all
Reply to author
Forward
0 new messages