예제 #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;
            }
        }