ViewRenderer.RenderPartialView

Renders a partial MVC view to given Writer. Use this method to render a partial view that doesn't merge with _Layout and doesn't fire _ViewStart.

public void RenderPartialView(string viewPath,
	object model,
	TextWriter writer)

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 pass to the viewRenderer

writer
Writer to render the view to

Overloads:


See also:

Class ViewRenderer

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic