/// <summary> /// Make sure a copy of the data is in the Session so users can try changes on their own copy. /// </summary> private void initData() { if (Session["MonthView"] == null) { Session["MonthView"] = DataGeneratorMonth.GetData(); } table = (DataTable)Session["MonthView"]; }
/// <summary> /// Make sure a copy of the data is in the Session so users can try changes on their own copy. /// </summary> private void initData() { if (Session["MonthCustomRendering"] == null) { Session["MonthCustomRendering"] = DataGeneratorMonth.GetData(); } table = (DataTable)Session["MonthCustomRendering"]; }
protected void Page_Load(object sender, EventArgs e) { #region Data loading initialization if (Session["MonthView"] == null) { Session["MonthView"] = DataGeneratorMonth.GetData(); } table = (DataTable)Session["MonthView"]; DayPilotMonth1.DataSource = Session["MonthView"]; #endregion if (!IsPostBack) { DataBind(); } }