예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //偵測控制項是否被放入 UpdatePanel Andrew Sun. 2013.05.03
        Page          oPage    = (Page)HttpContext.Current.CurrentHandler;
        ScriptManager oManager = ToolkitScriptManager.GetCurrent(oPage);

        if (oManager != null)
        {
            oManager.RegisterPostBackControl(gvAttach);
        }
        DivAttachList.Attributes.Add("style", string.Format("border: 0px solid; overflow: auto; width: {0}; height: {1};padding-bottom:1px;", (ucWidth <= 0) ? "auto" : ucWidth + "px", (ucHeight <= 0) ? "auto" : ucHeight + "px"));

        gvAttach.EmptyDataText = Util.getHtmlMessage(Util.HtmlMessageKind.DataNotFound);

        if (!IsPostBack)
        {
            if (!string.IsNullOrEmpty(ucAttachDB) && !string.IsNullOrEmpty(ucAttachID))
            {
                //若屬性有值才自動Refresh()
                string strAttachDB   = ucAttachDB;
                string strAttachID   = ucAttachID;
                bool   bolIsEditMode = ucIsEditMode;
                Refresh(strAttachDB, strAttachID, bolIsEditMode);
            }
        }
    }
        /// <summary>
        /// Raises the <see cref="E:System.Web.UI.Control.Init"/> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> object that contains the event data.</param>
        protected override void OnInit(EventArgs e)
        {
            //
            //  We have to have a ToolkitScriptManager on the page but, we can't require that the
            //  developer add one to the page because this might be a SharePoint environment
            //  so, we added this code to Page.Init to add a ToolkitScriptManager if there isn't one.
            //
            Page.Init += delegate(object sender, EventArgs e_Init)
            {
                if (ToolkitScriptManager.GetCurrent(Page) == null)
                {
                    ToolkitScriptManager sMgr = new ToolkitScriptManager {
                        EnablePageMethods = true
                    };
                    if (Page.Form == null)
                    {
                        throw new HttpException("Control must be located inside of a <form> tag.");
                    }

                    Page.Form.Controls.AddAt(0, sMgr);
                }
            };

//            if (!Page.IsCallback)
            {
                m_GridView = new GridView();

                m_HistoryData = new HistoryDataSource();

                m_HistoryData.QueryInfo        = QueryInfo;
                m_GridView.DataSource          = m_HistoryData;
                m_GridView.AutoGenerateColumns = false;
            }

            if (!DesignMode)
            {
                //
                //  Add our stylesheet
                //
                HtmlLink link = new HtmlLink();
                link.Href = Page.ClientScript.GetWebResourceUrl(this.GetType(),
                                                                "MVPSI.JAMSWeb.Controls.Resources.JAMSLoadingStyles.css");
                link.Attributes.Add("type", "text/css");
                link.Attributes.Add("rel", "stylesheet");
                Page.Header.Controls.Add(link);

                //
                //  Add our stylesheet
                //
                HtmlLink link2 = new HtmlLink();
                link2.Href = Page.ClientScript.GetWebResourceUrl(this.GetType(), "MVPSI.JAMSWeb.Controls.SubmitDialog.JAMSSubmitStyles.css");
                link2.Attributes.Add("type", "text/css");
                link2.Attributes.Add("rel", "stylesheet");
                Page.Header.Controls.Add(link2);
            }

            base.OnInit(e);
        }
예제 #3
0
        /// <summary>
        /// Selected index changed event of course part drop down.
        /// </summary>
        /// <param name="sender">Event source.</param>
        /// <param name="e">Event argument.</param>
        protected void DD_CoursePart_SelectedIndexChanged(object sender, EventArgs e)
        {
            // Call for Seting FacultyID , CourseID ,MoLrnID and PatternID.
            getFacCrMoLrnPtrnID();

            // This will fill Correspondance Course Part term drop down
            FillPartTerm(UniId, pk_Institute_ID, Convert.ToString(sFacID), Convert.ToString(sCourseID), Convert.ToString(sMoLrnID), Convert.ToString(sPtrnID), DD_Branch.SelectedItem.Value, long.Parse(DD_CoursePart.SelectedValue));
            ToolkitScriptManager.GetCurrent(this.Page).SetFocus(DD_CoursePart);
        }
예제 #4
0
        protected void ddlCrPrDetailsDesc_SelectedIndexChanged(object sender, EventArgs e)
        {
            getFacCrMoLrnPtrnID();

            ////This will Fill Correspondance Course Part Term Details Drop Down
            FillPartTerm(hidUniID.Value, hidInstID.Value, hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidPtrnID.Value, Convert.ToString(ddlCrBrnDesc.SelectedItem.Value), Convert.ToString(ddlCrPrDetailsDesc.SelectedItem.Value));

            ToolkitScriptManager.GetCurrent(this.Page).SetFocus(ddlCrPrChDesc);
        }
예제 #5
0
        protected void ddlCrBrnDesc_SelectedIndexChanged(object sender, EventArgs e)
        {
            ddlCrPrChDesc.Items.Clear();

            ddlCrPrChDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));
            getFacCrMoLrnPtrnID();

            FillCoursePart(hidUniID.Value, hidInstID.Value, hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidPtrnID.Value, Convert.ToString(ddlCrBrnDesc.SelectedValue));
            ToolkitScriptManager.GetCurrent(this.Page).SetFocus(ddlCrBrnDesc);
        }
예제 #6
0
        /// <summary>
        /// Selected index changed event of branch's drop down.
        /// </summary>
        /// <param name="sender">Event source.</param>
        /// <param name="e">Event argument.</param>
        protected void DD_Branch_SelectedIndexChanged(object sender, EventArgs e)
        {
            DD_Term.Items.Clear();
            DD_Term.Items.Insert(0, new ListItem("---- Select ----", "0"));

            // Call for Seting FacultyID , CourseID ,MoLrnID and PatternID.
            getFacCrMoLrnPtrnID();

            // This will Fill Correspondance Course Part Details Drop Down.
            FillCoursePart(UniId, pk_Institute_ID, sFacID, sCourseID, sMoLrnID, sPtrnID, long.Parse(DD_Branch.SelectedItem.Value));
            ToolkitScriptManager.GetCurrent(this.Page).SetFocus(DD_Branch);
        }
 protected void ddlStudyCenter_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (Convert.ToInt16(ddlStudyCenter.SelectedItem.Text.IndexOf('[')) == 0 && Convert.ToInt16(ddlStudyCenter.SelectedItem.Text.IndexOf(']')) > 0)
     {
         string CenterCode = Convert.ToString(ddlStudyCenter.SelectedItem.Text.Split('[')[1].Trim());
         CenterCode         = CenterCode.Split(']')[0].Trim();
         txtCenterCode.Text = CenterCode;
         hidInstCode.Value  = CenterCode;
         hidInstName.Value  = Convert.ToString(ddlStudyCenter.SelectedItem.Text.Split('-')[1].Trim());
         hidNewRef_Pk_Institute_ID.Value = ddlStudyCenter.SelectedItem.Value.Trim();
     }
     ToolkitScriptManager.GetCurrent(this.Page).SetFocus(ddlStudyCenter);
 }
예제 #8
0
        private void FillDropDowns(string sFacID, string sCrID, string sMoLrnID, string sPtrnID)
        {
            ddlCrBrnDesc.Items.Clear();
            ddlCrPrDetailsDesc.Items.Clear();
            ddlCrPrChDesc.Items.Clear();
            ddlCrBrnDesc.Items.Insert(0, new ListItem("--- Select ---", "-1"));
            ddlCrPrDetailsDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));
            ddlCrPrChDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));

            FillFacultyCourseMoLrnPatternName(clsGetSettings.UniversityID, string.Empty, ddlFacDesc.SelectedValue, sFacID, sCrID, sMoLrnID, sPtrnID);

            ToolkitScriptManager.GetCurrent(this.Page).SetFocus(ddlFacDesc);
        }
예제 #9
0
        private void FillCoursePart(string Uni_ID, string Inst_ID, string Fac_ID, string Cr_ID, string Molrn_ID, string Ptrn_ID, string Brn_ID)
        {
            ddlCrPrChDesc.Items.Clear();

            ddlCrPrChDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));
            getFacCrMoLrnPtrnID();

            ddlCrPrDetailsDesc.Items.Clear();
            oDT     = new System.Data.DataTable();
            oCommon = new clsCommon();

            // Admission Eligibility :Fetch Course Part
            //Course Part having only one child should be displayed except the first one...
            //Course Part having more than one child should be displayed . Eg. MA-I and MA-II both should be displayed as both parts contains two terms
            Hashtable oHt = new Hashtable();

            oHt["UniID"]   = Uni_ID.Trim();
            oHt["FacID"]   = Fac_ID.Trim();
            oHt["CrID"]    = Cr_ID.Trim();
            oHt["MoLrnID"] = Molrn_ID.Trim();
            oHt["PtrnID"]  = Ptrn_ID.Trim();
            oHt["BrnID"]   = Brn_ID.Trim();
            if (Request.QueryString["frmPrevious"] != null)
            {
                oHt["PartOrTerm"] = hidAdmissionElgTypeID.Value;
            }
            else
            {
                oHt["PartOrTerm"] = rdbPartOrTerm.SelectedValue;
            }
            clsAdmissionElgConfig oAdmissionElgConfig = new clsAdmissionElgConfig();

            oDT = oAdmissionElgConfig.GetCoursePartForAdmissionElg(oHt);
            if (oDT.Rows.Count == 0)
            {
                lblNote.Text    = "There are no " + lblCr.Text + "-Parts available for the selected course for whom the Admission Eligibility can be configured.";
                lblNote.Visible = true;
            }
            else
            {
                lblNote.Text    = "";
                lblNote.Visible = false;
            }
            oCommon.fillDropDown(ddlCrPrDetailsDesc, oDT, string.Empty, "Text", "Value", "--- Select ---");
            //if(!IsPostBack)
            SelectItem(ddlCrPrDetailsDesc, sCrPrDetailsID);

            ToolkitScriptManager.GetCurrent(this.Page).SetFocus(ddlCrBrnDesc);
        }
예제 #10
0
        protected void DDlFaculty_SelectedIndexChanged(object sender, EventArgs e)
        {
            DD_Branch.Items.Clear();
            DD_Branch.Items.Insert(0, new ListItem("---- Select ----", "-1"));

            DD_CoursePart.Items.Clear();
            DD_CoursePart.Items.Insert(0, new ListItem("---- Select ----", "0"));

            DD_Term.Items.Clear();
            DD_Term.Items.Insert(0, new ListItem("---- Select ----", "0"));

            FillFacultyCourseMoLrnPatternName(UniId.ToString(), pk_Institute_ID, DDlFaculty.SelectedItem.Value);

            ToolkitScriptManager.GetCurrent(this.Page).SetFocus(DDlFaculty);
        }
예제 #11
0
        /// <summary>
        /// Handles the PreRender event
        /// </summary>
        /// <param name="e"></param>
        protected override void OnPreRender(EventArgs e)
        {
            if (!this.DesignMode)
            {
                m_ScriptManager = ToolkitScriptManager.GetCurrent(Page);

                if (m_ScriptManager == null)
                {
                    throw new HttpException("A ToolkitScriptManager control must exist on the current page.");
                }

                m_ScriptManager.RegisterScriptControl(this);
            }

            base.OnPreRender(e);
        }
예제 #12
0
        protected void rdbPartOrTerm_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (Request.QueryString["frmPrevious"] == null)
            {
                //FillDropDowns();
                ddlCrPrChDesc.Items.Clear();

                ddlCrPrChDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));
                getFacCrMoLrnPtrnID();

                FillCoursePart(clsGetSettings.UniversityID, string.Empty, hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidPtrnID.Value, Convert.ToString(ddlCrBrnDesc.SelectedValue));
                ToolkitScriptManager.GetCurrent(this.Page).SetFocus(ddlCrBrnDesc);
            }

            hidAdmissionElgTypeID.Value = rdbPartOrTerm.SelectedValue;
        }
예제 #13
0
        protected void ddlFacDesc_SelectedIndexChanged(object sender, EventArgs e)
        {
            ddlCrBrnDesc.Items.Clear();
            ddlCrPrDetailsDesc.Items.Clear();
            ddlCrPrChDesc.Items.Clear();
            if (user.UserTypeCode != "2")
            {
                hidInstID.Value = string.Empty;
            }

            ddlCrBrnDesc.Items.Insert(0, new ListItem("--- Select ---", "-1"));
            ddlCrPrDetailsDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));
            ddlCrPrChDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));

            FillFacultyCourseMoLrnPatternName(hidUniID.Value, hidInstID.Value, ddlFacDesc.SelectedValue);

            ToolkitScriptManager.GetCurrent(this.Page).SetFocus(ddlFacDesc);
        }
예제 #14
0
        protected void ddlCrDesc_SelectedIndexChanged(object sender, EventArgs e)
        {
            ddlCrPrDetailsDesc.Items.Clear();
            ddlCrPrChDesc.Items.Clear();
            if (user.UserTypeCode != "2")
            {
                hidInstID.Value = string.Empty;
            }

            ddlCrPrDetailsDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));
            ddlCrPrChDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));

            ////Call for Seting FacultyID , CourseID ,MoLrnID and PatternID
            getFacCrMoLrnPtrnID();

            ////This will Fill Correspondance Branch Drop Down
            FillBranch(hidUniID.Value, hidInstID.Value, hidFacID.Value, hidCrID.Value, hidMoLrnID.Value, hidPtrnID.Value);

            ToolkitScriptManager.GetCurrent(this.Page).SetFocus(ddlCrDesc);
        }
예제 #15
0
        /// <summary>
        /// Handles page initialization.
        /// </summary>
        /// <param name="e"></param>
        protected override void OnInit(EventArgs e)
        {
            //
            //  We have to have a ToolkitScriptManager on the page but, we can't require that the
            //  developer add one to the page because this might be a SharePoint environment
            //  so, we added this code to Page.Init to add a ToolkitScriptManager if there isn't one.
            //
            Page.Init += delegate(object sender, EventArgs e_Init)
            {
                if (ToolkitScriptManager.GetCurrent(Page) == null)
                {
                    ToolkitScriptManager sMgr = new ToolkitScriptManager();
                    if (Page.Form == null)
                    {
                        throw new HttpException("Control must be located inside of a <form> tag.");
                    }
                    Page.Form.Controls.AddAt(0, sMgr);
                }
            };

            base.OnInit(e);

            if (string.IsNullOrEmpty(ServerName))
            {
                ServerName = "localhost";
            }

            //
            //  Add our stylesheet
            //
            HtmlLink link = new HtmlLink();

            link.Href = Page.ClientScript.GetWebResourceUrl(this.GetType(), "MVPSI.JAMSWeb.Controls.SubmitDialog.JAMSSubmitStyles.css");
            link.Attributes.Add("type", "text/css");
            link.Attributes.Add("rel", "stylesheet");
            Page.Header.Controls.Add(link);
        }
예제 #16
0
        private void FillBranch(string Uni_ID, string Inst_ID, string Fac_ID, string Cr_ID, string Molrn_ID, string Ptrn_ID)
        {
            ddlCrPrDetailsDesc.Items.Clear();
            ddlCrPrChDesc.Items.Clear();
            ddlCrPrDetailsDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));
            ddlCrPrChDesc.Items.Insert(0, new ListItem("--- Select ---", "0"));
            ////Call for Seting FacultyID , CourseID ,MoLrnID and PatternID

            ddlCrBrnDesc.Items.Clear();
            oDT = new System.Data.DataTable();
            try
            {
                oDT = crRepository.ListCourseModeOfLearningPatternWiseLaunchedBranches(long.Parse(Uni_ID), long.Parse(Fac_ID), long.Parse(Cr_ID), long.Parse(Molrn_ID), long.Parse(Ptrn_ID));

                if (oDT.Rows.Count > 0)
                {
                    oCommon = new clsCommon();
                    if (oDT.Rows.Count == 1)
                    {
                        if (Convert.ToString(oDT.Rows[0]["Text"]) == "No Branch")
                        {
                            ListItem li = new ListItem();
                            li.Text  = "No Branch Available";
                            li.Value = "0";
                            ddlCrBrnDesc.Items.Add(li);
                            FillCoursePart(Uni_ID, Inst_ID, Fac_ID, Cr_ID, Molrn_ID, Ptrn_ID, "0");
                        }
                        else
                        {
                            oCommon.fillDropDown(ddlCrBrnDesc, oDT, "-1", "Text", "Value", "---- Select ----");
                            SelectItem(ddlCrBrnDesc, hidBrnID.Value);
                        }
                    }
                    else
                    {
                        oCommon.fillDropDown(ddlCrBrnDesc, oDT, "-1", "Text", "Value", "---- Select ----");
                        SelectItem(ddlCrBrnDesc, hidBrnID.Value);
                    }

                    oCommon = null;
                }
                else
                {
                    if (ddlCrDesc.SelectedIndex == 0)
                    {
                        ListItem li = new ListItem();
                        li.Text  = "---- Select ----";
                        li.Value = "-1";
                        ddlCrBrnDesc.Items.Add(li);
                    }
                    else
                    {
                        ListItem li = new ListItem();
                        li.Text  = "No Branch Available";
                        li.Value = "0";
                        ddlCrBrnDesc.Items.Add(li);
                    }
                }
            }
            catch (Exception e)
            {
            }

            ToolkitScriptManager.GetCurrent(this.Page).SetFocus(ddlCrDesc);
        }
예제 #17
0
        /// <summary>
        /// Raises the <see cref="E:System.Web.UI.Control.Init"/> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> object that contains the event data.</param>
        protected override void OnInit(EventArgs e)
        {
            //
            //  We have to have a ToolkitScriptManager on the page but, we can't require that the
            //  developer add one to the page because this might be a SharePoint environment
            //  so, we added this code to Page.Init to add a ToolkitScriptManager if there isn't one.
            //
            Page.Init += delegate(object sender, EventArgs e_Init)
            {
                if (ToolkitScriptManager.GetCurrent(Page) == null)
                {
                    ToolkitScriptManager sMgr = new ToolkitScriptManager();
                    if (Page.Form == null)
                    {
                        throw new HttpException("Control must be located inside of a <form> tag.");
                    }
                    Page.Form.Controls.AddAt(0, sMgr);
                }
            };

//            if (!Page.IsCallback)
            {
                m_GridView = new GridView();

                m_MonitorData = new MonitorDataSource();

                m_GridView.DataSource          = m_MonitorData;
                m_GridView.AutoGenerateColumns = false;
            }

            if (!DesignMode)
            {
                //
                //  Add our stylesheet
                //
                HtmlLink link = new HtmlLink();
                link.Href = Page.ClientScript.GetWebResourceUrl(this.GetType(),
                                                                "MVPSI.JAMSWeb.Controls.Resources.JAMSLoadingStyles.css");
                link.Attributes.Add("type", "text/css");
                link.Attributes.Add("rel", "stylesheet");
                Page.Header.Controls.Add(link);

                HtmlLink link2 = new HtmlLink();
                link2.Href = Page.ClientScript.GetWebResourceUrl(this.GetType(), "MVPSI.JAMSWeb.Controls.SubmitDialog.JAMSSubmitStyles.css");
                link2.Attributes.Add("type", "text/css");
                link2.Attributes.Add("rel", "stylesheet");
                Page.Header.Controls.Add(link2);
            }

            m_GridView.CssClass = "monitorControl";
            UpdatePanel         = new UpdatePanel {
                ID = GetChildControlID("UpdatePanel")
            };
            UpdatePanel.ChildrenAsTriggers = true;
            UpdatePanel.RenderMode         = UpdatePanelRenderMode.Block;

            //Setup loading dialog
            var popup = new ModalPopupExtender();

            popup.PopupControlID  = GetChildControlID("LoadingDialog");
            popup.DropShadow      = false;
            popup.RepositionMode  = ModalPopupRepositionMode.RepositionOnWindowResize;
            popup.TargetControlID = GetChildControlID("DummyButton");
            popup.ID         = GetChildControlID("PopupExtender");
            popup.BehaviorID = GetChildControlID("PopupExtender");

            Button button = new Button();

            button.ID = GetChildControlID("DummyButton");
            button.Style["display"]  = "none";
            button.Height            = 0;
            button.Width             = 0;
            button.UseSubmitBehavior = false;

            Panel loadingDialog = new Panel();
            Label loadingLabel  = new Label();
            Image img           = new Image();

            loadingLabel.Style["width"]  = "auto";
            loadingLabel.Style["margin"] = "4%";
            loadingLabel.Text            = "Loading...";

            img.ImageUrl = Page.ClientScript.GetWebResourceUrl(this.GetType(), "MVPSI.JAMSWeb.Controls.Resources.LoadIcon.gif");
            loadingDialog.Controls.Add(img);
            loadingDialog.Controls.Add(loadingLabel);

            loadingDialog.ID = GetChildControlID("LoadingDialog");
            loadingDialog.Style["height"] = "50px";
            loadingDialog.HorizontalAlign = HorizontalAlign.Left;
            loadingDialog.CssClass        = "loadingPopup";

            Panel noResultsPanel = new Panel();
            Label noResultsLabel = new Label();

            noResultsLabel.Text            = "No results found";
            noResultsLabel.Style["width"]  = "auto";
            noResultsLabel.Style["margin"] = "4%";

            noResultsPanel.ID = GetChildControlID("NoResultsPanel");
            noResultsPanel.Controls.Add(noResultsLabel);
            m_NoResultsPanel = noResultsPanel;

            m_MonitorDialog.ID         = GetChildControlID("MonitorDetail");
            m_MonitorDialog.ServerName = this.ServerName;

            var dialogPopup = new ModalPopupExtender();

            dialogPopup.PopupControlID  = m_MonitorDialog.ClientID;
            dialogPopup.DropShadow      = false;
            dialogPopup.RepositionMode  = ModalPopupRepositionMode.RepositionOnWindowResize;
            dialogPopup.TargetControlID = GetChildControlID("DummyButton2");
            dialogPopup.ID = GetChildControlID("DialogPopupExtender");
            dialogPopup.BackgroundCssClass = "modalBackground";
            m_MonitorDialog.Extender       = dialogPopup;
            m_MonitorDialog.ParentMonitor  = this;

            var dummyButton2 = new Button();

            dummyButton2.ID = GetChildControlID("DummyButton2");
            dummyButton2.Style["display"]  = "none";
            dummyButton2.Height            = 0;
            dummyButton2.Width             = 0;
            dummyButton2.UseSubmitBehavior = false;

            var errorDummyButton = new Button {
                ID = GetChildControlID("ErrorDummyButton"), UseSubmitBehavior = false
            };

            errorDummyButton.Style["Display"] = "None";

            m_ErrorPanel = new Panel {
                ID = GetChildControlID("ErrorDialogPanel")
            };
            m_ErrorPanel.Controls.Add(new Label {
                Text = "Error", CssClass = "tabContents"
            });
            m_ErrorPanel.Controls.Add(new Button {
                Text = "OK", ID = GetChildControlID("ErrorOk")
            });
            m_ErrorPanel.CssClass         = "modalPopup";
            m_ErrorPanel.Style["Display"] = "None";

            m_ErrorDialog = new ModalPopupExtender {
                ID = GetChildControlID("ErrorDialog")
            };
            m_ErrorDialog.PopupControlID     = m_ErrorPanel.ClientID;
            m_ErrorDialog.DropShadow         = false;
            m_ErrorDialog.RepositionMode     = ModalPopupRepositionMode.RepositionOnWindowResize;
            m_ErrorDialog.TargetControlID    = errorDummyButton.ClientID;
            m_ErrorDialog.BackgroundCssClass = "modalBackground";
            m_ErrorDialog.CancelControlID    = GetChildControlID("ErrorOk");
            m_ErrorDialog.BehaviorID         = m_ErrorDialog.ID;

            Control controlContainer = UpdatePanel.ContentTemplateContainer;

            controlContainer.Controls.Add(m_GridView);
            controlContainer.Controls.Add(m_MonitorData);
            controlContainer.Controls.Add(m_MonitorDialog);
            controlContainer.Controls.Add(m_MonitorDialog.Extender);

            controlContainer.Controls.Add(dummyButton2);
            controlContainer.Controls.Add(loadingDialog);
            controlContainer.Controls.Add(button);
            controlContainer.Controls.Add(popup);
            controlContainer.Controls.Add(noResultsPanel);
            controlContainer.Controls.Add(m_ErrorPanel);
            controlContainer.Controls.Add(m_ErrorDialog);
            controlContainer.Controls.Add(errorDummyButton);

            SubPanel = new Panel();
            controlContainer.Controls.Add(SubPanel);
            base.OnInit(e);
        }