Renders a partial MVC view to string. Use this method to render a partial view that doesn't merge with _Layout and doesn't fire _ViewStart.
public string RenderPartialViewToString(string viewPath, object model)
String of the rendered view or null on error
The path to the view to render. Either in same controller, shared by name or as fully qualified ~/ path including extension
The model to pass to the viewRenderer
See also:Class ViewRenderer
Comment or report problem with topic