Renders a full MVC view to a string. Will render with the full MVC View engine including running _ViewStart and merging into _Layout
public string RenderView(string viewPath,
object model);
Return Value
String of the rendered view or null on error
Parameters
viewPath
The path to the view to render. Either in same controller, shared by
name or as fully qualified ~/ path including extension
model
The model to render the view with
Overloads:
See also:
Class ViewRenderer