public static void InitSes() { InitMyConnStr(); string str = "Select * from SystemSet"; DataTableReader reader = DM.ExecuteReader(str); while (reader.Read()) { string sKey = reader["Item"].ToString(); string oValue = reader["Setting"].ToString(); HttpContext.Current.Session[sKey] = oValue; if (sKey == "SchoolRank") { SetAppKey(sKey, oValue); } } reader.Close(); SetMaxMinGradeID(); }