public void FillSharePointTimerJobsGridView() { DataTable dt = VSWebBL.DashboardBL.SharepointDetailsBL.Ins.GetSharePointTimerJobsDetails(); Session["SharePointTimerJobsGridView"] = dt; SharePointTimerJobsGridView.DataSource = dt; SharePointTimerJobsGridView.DataBind(); }
public void FillSharePointTimerJobsGridViewfromSession() { DataTable SharePointTimerJobs = new DataTable(); try { if (Session["SharePointTimerJobsGridView"] != null && Session["SharePointTimerJobsGridView"] != "") { SharePointTimerJobs = Session["SharePointTimerJobsGridView"] as DataTable; } SharePointTimerJobsGridView.DataSource = SharePointTimerJobs; SharePointTimerJobsGridView.DataBind(); } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } }