Exemple #1
0
        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);
        }
Exemple #3
0
 public override void CreateControls(IDotvvmRequestContext context, DotvvmControl container)
 {
     ContentTemplate.BuildContent(context, container);
 }