public void SettQuickrServersGridFromSession() { if (Session["QuickrServersGridData"] != null) { QuickrServersGrid.DataSource = (DataTable)Session["QuickrServersGridData"]; QuickrServersGrid.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["QuickrServersGridData"] != null) { } else { Session["QuickrServersGridData"] = SetQuickrServersGrid("Domino"); } if (Session["UserPreferences"] != null) { DataTable UserPreferences = (DataTable)Session["UserPreferences"]; foreach (DataRow dr in UserPreferences.Rows) { if (dr[1].ToString() == "QuickrHealth|QuickrServersGrid") { QuickrServersGrid.SettingsPager.PageSize = Convert.ToInt32(dr[2]); } if (dr[1].ToString() == "QuickrHealth|QuickrPlacesGrid") { QuickrPlacesGrid.SettingsPager.PageSize = Convert.ToInt32(dr[2]); } } } } QuickrServersGrid.DataSource = Session["QuickrServersGridData"]; if (!IsPostBack && !IsCallback) { //QuickrServersGrid.DataSource = Session["QuickrServersGridData"]; QuickrServersGrid.DataBind(); } SettQuickrServersGridFromSession(); Session["BackURL"] = "QuickrHealth.aspx"; //10/11/2013 NS added int index = QuickrServersGrid.FocusedRowIndex; if (index > -1) { value = QuickrServersGrid.GetRowValues(index, "Name").ToString(); SetGraphForResponseTime("hh", value); SetGraphForHttpSessions("hh", value); SetGraphForCPU("hh", value); SetGraphForMemory("hh", value); //10/28/2013 NS commented out per AF's request //SetQuickrPlacesGrid(value); } }