I want to use RenderAction, but I’m getting an error:
Error executing child request for handler ‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper’.
My view:
@{
Layout = string.Empty;
}
@{ Html.RenderAction("AssetStructureChart"); }
Controler:
public ContentResult AssetStructureChart() {
return Content("test");
}
And I don’t use any layout. I don’t understand why this doesn’t work. Can anybody help?
Implemented this through c# extension methods.
And in view: