Exemplo n.º 1
0
        protected override void LoadViewState(object savedState)
        {
            base.LoadViewState(savedState);

            if (ViewState["Loading Page"] != null)
            {
                BaseUserControl ctl = (BaseUserControl)Page.LoadControl(ViewState["Loading Page"].ToString());
                ctl.ID             = "Popup";
                ctl.OnPopUpReturn += BasePopUpReturnHandler;
                PopUpUpdatePanel.ContentTemplateContainer.Controls.Clear();
                PopUpUpdatePanel.ContentTemplateContainer.Controls.Add(ctl);
            }
        }
Exemplo n.º 2
0
        protected T LoadPopup <T>(string path, UpdatePanel parent) where T : BaseUserControl
        {
            ViewState["Loading Page"] = path;
            BaseUserControl ctl = (BaseUserControl)Page.LoadControl(path);

            ctl.ID                = "Popup";
            ctl.OnPopUpReturn    += BasePopUpReturnHandler;
            ViewState["ParentID"] = parent.ID;
            parent.ContentTemplateContainer.Controls.Clear();
            parent.ContentTemplateContainer.Controls.Add(ctl);
            parent.Update();
            return((T)ctl);
        }
Exemplo n.º 3
0
        protected BaseUserControl GetCurrentPopUpControl()
        {
            BaseUserControl ctl = null;

            if (PopUpUpdatePanel != null)
            {
                return((BaseUserControl)PopUpUpdatePanel.FindControl("Popup"));
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 4
0
        protected BaseUserControl GetCurrentPopUpControl()
        {
            BaseUserControl ctl = null;

            return((BaseUserControl)this.FindControl("Popup"));
        }