Esempio n. 1
0
 //10/23/2015 NS added for VSPLUS-2253
 private void FillSysInfo()
 {
     try
     {
         DataTable dt = VSWebBL.DashboardBL.DominoServerDetailsBL.Ins.GetServerDetailsData("");
         Session["SysInfo"]     = dt;
         SysInfoGrid.DataSource = dt;
         SysInfoGrid.DataBind();
     }
     catch (Exception ex)
     {
         Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
         throw ex;
     }
     finally
     {
     }
 }
Esempio n. 2
0
        private void FillSysInfoFromSession()
        {
            DataTable dt = new DataTable();

            try
            {
                if (Session["SysInfo"] != null && Session["SysInfo"] != "")
                {
                    dt = Session["SysInfo"] as DataTable;
                }
                if (dt.Rows.Count > 0)
                {
                    dt.PrimaryKey = new DataColumn[] { dt.Columns["ID"] };
                }
                SysInfoGrid.DataSource = dt;
                SysInfoGrid.DataBind();
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
                throw ex;
            }
        }