/// <summary> /// This method is responsible for making a connection to database, trying to put the edited data into the database and returning to the events list. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Edit_Event(object sender, EventArgs e) { db = new SQLDatabase(); db.Connect(); if (Request.QueryString["id_e"] != null) { int id_e = int.Parse(Request.QueryString["id_e"]); db.EditEvent(id_e, due_date.Value, title.Value, content.Value); Response.Redirect("Events.aspx"); } db.Disconnect(); }