Example #1
0
        public void FillNotesMailProbeGridfromSession()
        {
            DataTable NotesMailTab = new DataTable();

            try
            {
                NotesMailTab = Session["NotesMailTab"] as DataTable;

                NotesMailProbeGridView.DataSource = NotesMailTab;
                NotesMailProbeGridView.DataBind();
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw ex;
            }
        }
Example #2
0
        public void FillNotesMailProbeGrid()
        {
            DataTable NotesMailTab = new DataTable();

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

                    //NotesMailProbeGridView.Visible = false;
                    //notesmailprobeDiv.Style.Value = "display: none";
                    notesmailprobeMainDiv.Style.Value = "display: none";
                }
                else
                {
                    //11/10/2014 NS modified
                    //MailProbeRoundPanel.Visible = true;

                    //NotesMailProbeGridView.Visible = true;
                    //notesmailprobeDiv.Style.Value = "display: block";
                    notesmailprobeMainDiv.Style.Value = "display: block";
                    NotesMailProbeGridView.DataSource = NotesMailTab;
                    NotesMailProbeGridView.DataBind();
                }
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw ex;
            }
        }