protected override void OnLoad(IDotvvmRequestContext context) { var container = FindControlByClientId("TemplateHost", true); ContentTemplate.BuildContent(context, container); base.OnLoad(context); }
protected override void OnInit(IDotvvmRequestContext context) { var dynamicDataContext = CreateDynamicDataContext(context); SetValue(DynamicDataContextProperty, dynamicDataContext); if (ContentTemplate != null) { ContentTemplate.BuildContent(context, this); } else { BuildForm(dynamicDataContext); } base.OnInit(context); }
public override void CreateControls(IDotvvmRequestContext context, DotvvmControl container) { ContentTemplate.BuildContent(context, container); }