private void FillAlertGridViewfromSession() { try { DataTable AlertDataTable = new DataTable(); //4/3/2014 NS modified for VSPLUS-138 //if (Session["AlertDataTable"] != "" && Session["AlertDataTable"] != null) // AlertDataTable = (DataTable)Session["AlertDataTable"];//VSWebBL.ConfiguratorBL.DominoPropertiesBL.Ins.GetAllData(); if (ViewState["AlertDataTable"] != "" && ViewState["AlertDataTable"] != null) { AlertDataTable = (DataTable)ViewState["AlertDataTable"];//VSWebBL.ConfiguratorBL.DominoPropertiesBL.Ins.GetAllData(); } if (AlertDataTable.Rows.Count > 0) { AlertGridView.DataSource = AlertDataTable; AlertGridView.DataBind(); } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }
private void FillAlertGridView() { try { DataTable AlertDataTable = new DataTable(); DataSet AlertDataSet = new DataSet(); AlertDataTable = VSWebBL.ConfiguratorBL.AlertsBL.Ins.GetAlertTab(NameTextBox.Text, "BES"); if (AlertDataTable.Rows.Count > 0) { DataTable dtcopy = AlertDataTable.Copy(); // dtcopy.PrimaryKey = new DataColumn[] { dtcopy.Columns["ID"] }; //4/3/2014 NS modified for VSPLUS-138 //Session["AlertDataTable"] = dtcopy; ViewState["AlertDataTable"] = dtcopy; AlertGridView.DataSource = AlertDataTable; AlertGridView.DataBind(); } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }
public void FillAlertHistoryfromSession() { DataTable AlertHistorytab = new DataTable(); try { AlertHistorytab = (DataTable)Session["AlertHistorytab"]; AlertGridView.DataSource = AlertHistorytab; AlertGridView.DataBind(); } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } }
public void FillAlertHistory() { DataTable AlertHistorytab = new DataTable(); try { AlertHistorytab = VSWebBL.DashboardBL.DominoServerDetailsBL.Ins.GetAlertHistry(Request.QueryString["Name"].ToString()); Session["AlertHistorytab"] = AlertHistorytab; AlertGridView.DataSource = AlertHistorytab; AlertGridView.DataBind(); } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } }
private void FillAlertGridView() { try { DataTable AlertDataTable = new DataTable(); DataSet AlertDataSet = new DataSet(); AlertDataTable = VSWebBL.ConfiguratorBL.AlertsBL.Ins.GetAlertTabbyDiffServers(SourceServerComboBox.Text, TargetComboBox.Text, "", "NotesMail Probe"); if (AlertDataTable.Rows.Count > 0) { DataTable dtcopy = AlertDataTable.Copy(); // dtcopy.PrimaryKey = new DataColumn[] { dtcopy.Columns["ID"] }; Session["AlertDataTable"] = dtcopy; AlertGridView.DataSource = AlertDataTable; AlertGridView.DataBind(); } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }