user603007 user603007 - 8 months ago 20
Javascript Question MVC 3 error when calling Html.RenderAction

I am a newbie to mvc 3. How can you render a view within a div by calling an action:


<div id="dialog-modal" title="Basic modal dialog">


public ActionResult Popup()
return PartialView();

I am getting an error:

The best overloaded method match for 'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)' has some invalid arguments


Try wrapping your HtmlHelper in a code block:

@{ Html.RenderAction("Popup", "Home"); }