private void FillExchangeServerGrid() { try { DataTable DSTaskSettingsDataTable = new DataTable(); DSTaskSettingsDataTable = VSWebBL.ConfiguratorBL.SharePointBAL.Ins.GetAllFarmData(); if (DSTaskSettingsDataTable.Rows.Count > 0) { Session["SPFarmGrid"] = DSTaskSettingsDataTable; SPFarmGrid.DataSource = DSTaskSettingsDataTable; SPFarmGrid.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 FillExchangeServerGridfromSession() { try { DataTable DSTaskSettingsDataTable = new DataTable(); if (Session["SPFarmGrid"] != null && Session["SPFarmGrid"] != "") { DSTaskSettingsDataTable = (DataTable)Session["SPFarmGrid"]; //VSWebBL.ConfiguratorBL.ExchangePropertiesBL.Ins.GetAllData(); } if (DSTaskSettingsDataTable.Rows.Count > 0) { SPFarmGrid.DataSource = DSTaskSettingsDataTable; SPFarmGrid.DataBind(); } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }