public override void RenderControl(HtmlTextWriter writer) { if(DesignMode) { CreateChildControls(); AddAttributesToRender(writer); ComboTable.RenderControl(writer); } else { HiddenFieldControl.Value = SelectedIndex.ToString(); base.RenderControl(writer); } }