//private DeluxeDateTime _DeluxeDateTimeControl = new DeluxeDateTime() { ID = "DateTimePropertyEditor_DeluxeDateTime" };

        protected internal override void OnPagePreRender(Page page)
        {
            if (page.Form != null)
            {
                HtmlGenericControl div = new HtmlGenericControl();

                div.Style["display"] = "none";

                DeluxeDateTime deluxeDateTimeControl = new DeluxeDateTime() { ID = "DateTimePropertyEditor_DeluxeDateTime" };

                div.Controls.Add(deluxeDateTimeControl);
                page.Form.Controls.AddAt(0, div);
            }
        }
        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);
            }
        }
Пример #3
0
        //private DeluxeDateTime _DeluxeDateTimeControl = new DeluxeDateTime() { ID = "DateTimePropertyEditor_DeluxeDateTime" };

        protected internal override void OnPagePreRender(Page page)
        {
            if (page.Form != null)
            {
                HtmlGenericControl div = new HtmlGenericControl();

                div.Style["display"] = "none";

                DeluxeDateTime deluxeDateTimeControl = new DeluxeDateTime()
                {
                    ID = "DateTimePropertyEditor_DeluxeDateTime"
                };

                div.Controls.Add(deluxeDateTimeControl);
                page.Form.Controls.AddAt(0, div);
            }
        }