Beispiel #1
0
        public void FillMailServiceGridfromSesson()
        {
            DataTable MailTab = new DataTable();

            try
            {
                if (Session["MailTab"] != "" && Session["MailTab"] != null)
                {
                    MailTab = Session["MailTab"] as DataTable;
                    MailGridView.DataSource = MailTab;
                    MailGridView.DataBind();
                }
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw ex;
            }
        }
Beispiel #2
0
        public void FillMailServiceGrid()
        {
            DataTable MailTab = new DataTable();

            try
            {
                MailTab            = VSWebBL.DashboardBL.MailHealthBL.Ins.GetMailServiceData();
                Session["MailTab"] = MailTab;
                //8/9/2013 NS added
                if (MailTab.Rows.Count == 0)
                {
                    //11/10/2014 NS modified
                    //ASPxRoundPanel1.Visible = false;

                    //MailGridView.Visible = false;
                    //mailServicesDiv.Style.Value = "display: none";
                    mailservicesMainDiv.Style.Value = "display: none";
                }
                else
                {
                    //11/10/2014 NS modified
                    //ASPxRoundPanel1.Visible = true;

                    //MailGridView.Visible = true;
                    //mailServicesDiv.Style.Value = "display: block";
                    mailservicesMainDiv.Style.Value = "display: block";
                    MailGridView.DataSource         = MailTab;
                    MailGridView.DataBind();
                }
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw ex;
            }
        }