I have the following controller action:
[ChildActionOnly]
public virtual PartialViewResult ListActions(int id)
{
var actions = meetingActionRepository.GetAll
Html.Partial should work as well :)
@Html.Partial("View", Model);
I had the same issue. What worked for me is to encapsulate the expression it in curly brackets.
@{Html.RenderPartial("viewName", Model);}
Like this:
<p>
@Html.Action(MVC.MeetingActions.ListActions(Model.MeetingId))
</p>
or if you insist on RenderAction
like this:
<p>
@{Html.RenderAction(MVC.MeetingActions.ListActions(Model.MeetingId));}
</p>
Personally I prefer the first, makes fewer keystrokes.
Difference between Html.RenderAction and Html.Action
Different things for different purposes. Check out the above link.