views:

134

answers:

1

I am using the SparkViewEngine and I am calling an action that I want to return a Partial View to update just a section of the page. When I return the view on the action the masterpage and all of its content gets returned. How do you tell a partial in spark to just return the content of the partial view and not put the content inside the application.spark file??

+4  A: 

Do you return PartialViewResult?

public PartialViewResult ActionName()
{
    return PartialView();
}

If you use PartialView(), application.spark is ignored.

LukLed