コード例 #1
0
        /// <summary>
        /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
        /// </summary>
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            Controls.Clear();
            RockControlHelper.CreateChildControls(this, Controls);

            _sppStepProgramPicker                       = new StepProgramPicker();
            _sppStepProgramPicker.ID                    = this.ID + "_sppStepProgramPicker";
            _sppStepProgramPicker.AutoPostBack          = true;
            _sppStepProgramPicker.SelectedIndexChanged += _sppStepProgramPicker_SelectedIndexChanged;
            _sppStepProgramPicker.Label                 = "Step Program";
            StepProgramPicker.LoadDropDownItems(_sppStepProgramPicker, true);
            Controls.Add(_sppStepProgramPicker);

            _sspStepStatusPicker       = new StepStatusPicker();
            _sspStepStatusPicker.ID    = this.ID + "_stpStepStatusPicker";
            _sspStepStatusPicker.Label = "Step Status";
            Controls.Add(_sspStepStatusPicker);
        }