public void FillADMembersGridSession() { if (Session["ADMembers"] != "" && Session["ADMembers"] != null) { DAGMembersGridView.DataSource = (DataTable)Session["ADMembers"]; DAGMembersGridView.DataBind(); } }
private void FillDAGMembersGridView(int DAGID) { try { DataTable DSTaskSettingsDataTable = new DataTable(); DSTaskSettingsDataTable = VSWebBL.DashboardBL.ExchangeServerDetailsBL.Ins.GetDAGMembers(DAGID); Session["DAGMembers"] = DSTaskSettingsDataTable; DAGMembersGridView.DataSource = DSTaskSettingsDataTable; DAGMembersGridView.DataBind(); } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }