protected void LoadUserPrefs() { // 11626 - 2: // Set defaults first, just in case. Session["defaultAORGrid"] = "Default"; Session["defaultStartModule"] = "My Data"; Session["defaultCrosswalkGrid"] = "Default"; Session["defaultWorkloadGrid"] = "3"; // Workload DataTable dt = WTSData.GetUserPreferences(this.UserId); if (dt != null) { DataTableReader reader = new DataTableReader(dt); while (reader.Read()) { switch (reader["GridNameID"].ToString()) { case "9": // Default Session["defaultStartModule"] = reader["ViewName"].ToString(); break; case "10": // Crosswalk Session["defaultCrosswalkGrid"] = reader["ViewName"].ToString(); break; case "1": // View Session["defaultWorkloadGrid"] = reader["SettingValue"].ToString(); break; case "11": // View Session["defaultAORGrid"] = reader["SettingValue"].ToString(); break; } } } else { // SCB TODO: Alert use to new preference options? } }