Ejemplo n.º 1
0
        protected override void CreateChildControls()
        {
            _formContainer = new PlaceHolder();
            FormTemplate.InstantiateIn(_formContainer);
            Controls.Add(_formContainer);

            HookupEventOnSubmitButton();

            base.CreateChildControls();
        }
Ejemplo n.º 2
0
        private void CreateContents()
        {
            if (base.DesignMode)
            {
                ClearContent();
            }

            if (FormTemplate != null)
            {
                FormTemplate.InstantiateIn(formContainer);
            }

            if (ButtonsTemplate != null)
            {
                ButtonsTemplate.InstantiateIn(buttonsContainer);
            }
        }