Click or drag to resize

ViewModelTemplateTViewModelRenderPartial Method (String)

Renders a partial view using the current view model

Namespace:  Dynamicweb.Rendering
Assembly:  Dynamicweb (in Dynamicweb.dll) Version: 9.10.0
Syntax
public string RenderPartial(
	string templatePath
)

Parameters

templatePath
Type: SystemString
Relative path to a view model template, e.g. "partials/part.cshtml

Return Value

Type: String
Output from rendering of the view model template
See Also