Click or drag to resize

ControllerStandardConvertViewToString Method

Convert MVC view to HTML code as string

Namespace:  Velo.Web.Helper
Assembly:  Velo.Web (in Velo.Web.dll) Version: 22.2.10.1 (22.2.10.450)
Syntax
protected string ConvertViewToString(
	string pViewName,
	Object pModel
)

Parameters

pViewName
Type: SystemString
View name or partial view name
pModel
Type: SystemObject
Data items based on data model

Return Value

Type: String
HTML code of view
Remarks
Test cases using this method trigger an exception:

The type initializer for 'System.Web.Mvc.ViewEngines' threw an exception.

See Also