AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

PageExtensions..::..PrepareChildControlsDuringPreInit Method

Can be called during the Page.PreInit stage to make child controls available. Needed when a master page is applied.

Namespace:  AdvantageCMS.Core.Common.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static void PrepareChildControlsDuringPreInit(
	this Page page
)

Parameters

page
Type: Page
The page.

Remarks


This is needed to fire the getter on the top level Master property, which in turn causes the ITemplates to be instantiated for the content placeholders, which in turn makes our controls accessible so that we can make the calls below.