Ejemplo n.º 1
0
        public void fillGrid()
        {
            DataTable AlertsTable = new DataTable();

            AlertsTable = VSWebBL.ConfiguratorBL.ELSBL.Ins.GetELSNames();
            try
            {
                Session["ELSNameTable"]   = AlertsTable;
                ELSDefGridView.DataSource = AlertsTable;
                ELSDefGridView.DataBind();
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw;
            }
        }
Ejemplo n.º 2
0
        public void fillGridfromSession()
        {
            DataTable AlertsTable = new DataTable();

            if (Session["ELSNameTable"] != "" && Session["ELSNameTable"] != null)
            {
                AlertsTable = (DataTable)Session["ELSNameTable"];
            }

            try
            {
                ELSDefGridView.DataSource = AlertsTable;
                ELSDefGridView.DataBind();
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw;
            }
        }