protected void ShowSeasonInfo(seasondb db)
        {
            bool   valid     = true;
            string season_id = Request.QueryString["seasonid"];

            if (String.IsNullOrEmpty(season_id))
            {
                valid = false;
            }


            if (valid)
            {
                http_page season_record = db.FindPage(Int32.Parse(season_id));

                s_title.InnerHtml += season_record.GetStitle();
                s_body.InnerHtml  += season_record.GetSbody();
            }
            else
            {
                valid = false;
            }

            if (!valid)
            {
                main_content.InnerHtml = "There was an error finding the season.";
            }
        }
        public void AddPage(http_page new_season)
        {
            Debug.WriteLine("Add query method started......");
            //adding a new season
            string query = "insert into season (seasontitle, seasonbody) values ('{0}','{1}')";

            query = String.Format(query, new_season.GetStitle(), new_season.GetSbody());
            MySqlConnection Connect = new MySqlConnection(ConnectionString);
            MySqlCommand    cmd     = new MySqlCommand(query, Connect);

            try
            {
                Connect.Open();
                cmd.ExecuteNonQuery();
            }
            catch (Exception ex)
            {
                Debug.WriteLine("Something went wrong in the AddSeason Method!");
                Debug.WriteLine(ex.ToString());
            }

            Connect.Close();
        }
        public void UpdatePage(int season_id, http_page new_season)
        {
            Debug.WriteLine("Update query method started......");
            //updating a particular season based on seasonid information
            string query = "update season set seasontitle ='{0}', seasonbody = '{1}' where seasonid = '{2}'";

            query = String.Format(query, new_season.GetStitle(), new_season.GetSbody(), season_id);

            MySqlConnection Connect = new MySqlConnection(ConnectionString);
            MySqlCommand    cmd     = new MySqlCommand(query, Connect);

            try
            {
                Connect.Open();
                cmd.ExecuteNonQuery();
                Debug.WriteLine("Execute query " + query);
            }
            catch (Exception e)
            {
                Debug.WriteLine("Something went wrong in the Update Method");
                Debug.WriteLine(e.ToString());
            }
            Connect.Close();
        }