Creates a template control based on template which is served with data from a PageData instance. If template is null no Control is added.

Namespace:  EPiServer.Web.WebControls
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
protected void CreateTemplateControl(
	PageData page,
	ITemplate template,
	int level,
	bool hasChildren
)

Parameters

page
Type: EPiServer.Core..::.PageData
The page.
template
Type: System.Web.UI..::.ITemplate
The template.
level
Type: System..::.Int32
hasChildren
Type: System..::.Boolean

See Also