public void fillGrid() { DataTable AlertsTable = new DataTable(); AlertsTable = VSWebBL.ConfiguratorBL.AlertsBL.Ins.GetAlertNames(); try { Session["AlertsNameTable"] = AlertsTable; AlertDefGridView.DataSource = AlertsTable; AlertDefGridView.DataBind(); } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw; } }
public void fillGridfromSession() { DataTable AlertsTable = new DataTable(); if (Session["AlertsNameTable"] != "" && Session["AlertsNameTable"] != null) { AlertsTable = (DataTable)Session["AlertsNameTable"]; } try { AlertDefGridView.DataSource = AlertsTable; AlertDefGridView.DataBind(); } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw; } }