Renders a template to a TextWriter. Useful to write output into a stream or the Response object. Used for partial rendering.
public string RenderTemplate(string relativePath, object model, TextWriter writer, bool isLayoutPage)
Parameters
relativePath
Relative path to the file in the folder structure
model
Optional parameter that is set as the Model property in generic versions
writer
The textwriter to write output into
isLayoutPage
See also:
Class RazorFolderHostContainer© West Wind Technologies, 2018 • Updated: 06/07/18
Comment or report problem with topic