public static DialogHelperWrapperSettings GetConfig()
        {
            DialogHelperWrapperSettings settings = (DialogHelperWrapperSettings)ConfigurationBroker.GetSection("dialogHelperWrapperSettings");

            if (settings == null)
                settings = new DialogHelperWrapperSettings();

            return settings;
        }
        public static DialogHelperWrapperSettings GetConfig()
        {
            DialogHelperWrapperSettings settings = (DialogHelperWrapperSettings)ConfigurationBroker.GetSection("dialogHelperWrapperSettings");

            if (settings == null)
            {
                settings = new DialogHelperWrapperSettings();
            }

            return(settings);
        }
Exemple #3
0
        protected override void OnPreRender(EventArgs e)
        {
            DialogHelperWrapperSettings config = DialogHelperWrapperSettings.GetConfig();

            Page.ClientScript.RegisterClientScriptBlock(this.GetType(), ControlID,
                                                        string.Format(
                                                            "<object id=\"{0}\" codebase=\"{1}\" height=\"0\" width=\"0\" classid=\"{2}\" style=\"display: none\"></object>",
                                                            HttpUtility.HtmlAttributeEncode(ControlID),
                                                            HttpUtility.HtmlAttributeEncode(config.Codebase),
                                                            HttpUtility.HtmlAttributeEncode(config.ClassID)
                                                            ),
                                                        false);

            base.OnPreRender(e);
        }