Пример #1
0
        public void fillGrid()
        {
            DataTable ScriptsTable = new DataTable();

            ScriptsTable = VSWebBL.ConfiguratorBL.AlertsBL.Ins.GetCustomScripts();
            try
            {
                Session["CustomScriptsTable"] = ScriptsTable;
                ScriptDefGridView.DataSource  = ScriptsTable;
                ScriptDefGridView.DataBind();
            }
            catch (Exception ex)
            {
                //6/27/2014 NS added for VSPLUS-634
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw;
            }
        }
Пример #2
0
        public void fillGridFromSession()
        {
            DataTable ScriptsTable = new DataTable();

            if (Session["CustomScriptsTable"] != "" && Session["CustomScriptsTable"] != null)
            {
                ScriptsTable = (DataTable)Session["CustomScriptsTable"];
            }
            try
            {
                ScriptDefGridView.DataSource = ScriptsTable;
                ScriptDefGridView.DataBind();
            }
            catch (Exception ex)
            {
                //6/27/2014 NS added for VSPLUS-634
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw;
            }
        }