protected internal override void OnPagePreRender(Page page) { if (page.Form != null) { HtmlGenericControl div = new HtmlGenericControl() { EnableViewState = false }; div.Style["display"] = "none"; DeluxeDateTime deluxeDateTimeControl = new DeluxeDateTime() { ID = "DateTimePropertyEditor_DeluxeDateTime", EnableViewState = false }; div.Controls.Add(deluxeDateTimeControl); PropertyEditorHelper.EnsureContainer(page).Controls.Add(div); } }
protected Control GetControlsContainerInPage(Page page) { return PropertyEditorHelper.EnsureContainer(page); }