public void FillQueueGrid() { try { DataTable StatusTable = VSWebBL.DashboardBL.MailHealthBL.Ins.GetMailDelivData("Exchange"); ExchangeMailGridView.DataSource = StatusTable; ExchangeMailGridView.DataBind(); Session["ExStatusTable"] = StatusTable; } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }
public void FillQueueGridFromSession() { if (Session["ExStatusTable"] != "" && Session["ExStatusTable"] != null) { DataTable StatusTable = Session["ExStatusTable"] as DataTable; try { ExchangeMailGridView.DataSource = StatusTable; ExchangeMailGridView.DataBind(); } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } } }