protected void CheckMailboxReportClose_Click(object sender, EventArgs e) { try { CheckMailboxManager.RemoveReportMailbox(IdCheckMailbox); HttpContext.Current.Session.Remove("mailCheckResponse"); ScriptManager.RegisterClientScriptBlock(this.UpPnlButtons, this.UpPnlButtons.GetType(), "closeAJM", "parent.closeAjaxModal('CheckMailboxReport','close');", true); } catch (System.Exception ex) { UIManager.AdministrationManager.DiagnosticError(ex); return; } }
protected void ReadRetValueFromPopup() { if (this.Request.Form["__EVENTTARGET"] != null && this.Request.Form["__EVENTTARGET"].Equals(PANEL_REGISTERS)) { this.GrdRegisters.SelectedIndex = int.Parse(this.grid_rowindex.Value); HighlightSelectedRow(); SelectedRegister = ListRegisters[this.GrdRegisters.SelectedIndex + this.GrdRegisters.PageIndex * this.GrdRegisters.PageSize]; ButtonsManager(); if ((GrdRegisters.SelectedRow.FindControl("DdlEmailRegister") as DropDownList).Enabled && this.RegistersBtnBox.Visible) { UpdateStateMailbox(SELECTED_MAILBOX); } if ((GrdRegisters.SelectedRow.FindControl("idCheckMailbox") as HiddenField).Value != null) { IdCheckMailbox = (GrdRegisters.SelectedRow.FindControl("idCheckMailbox") as HiddenField).Value; } return; } if (this.Request.Form["__EVENTTARGET"] != null && this.Request.Form["__EVENTTARGET"].Equals(UP_PANEL_BUTTONS)) { if (this.Request.Form["__EVENTARGUMENT"] != null && (this.Request.Form["__EVENTARGUMENT"].Equals(CLOSE_CHECK_MAILBOX_REPORT))) { CheckMailboxManager.RemoveReportMailbox(IdCheckMailbox); DeletePropertyCheckMailboxReport(); ButtonsManager(); UpdateStateMailbox(ALL_MAILBOX); this.panelRegisters.Update(); ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "setReturnValue", "SetRetValue('CheckMailboxReport','')", true); return; } } if (!string.IsNullOrEmpty(HiddenVerifyBox.Value)) { CheckIstitutionalMailbox(); this.HiddenVerifyBox.Value = string.Empty; } if (!string.IsNullOrEmpty(this.RegisterModify.ReturnValue)) { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "setReturnValue", "SetRetValue('RegisterModify','')", true); return; } }