protected void Button1_Click(object sender, EventArgs e) { AdminDB db = new AdminDB(); int id = int.Parse(Request.QueryString["id"]); string fecha_mesa = Convert.ToDateTime(TextBox2.Text).ToString("dd/MM/yyyy"); bool r = db.Editar_Mesa2(TextBox1.Text, int.Parse(DropDownList1.SelectedValue), fecha_mesa, TextBox3.Text, int.Parse(DropDownList2.SelectedValue), int.Parse(DropDownList3.SelectedValue), int.Parse(DropDownList4.SelectedValue), int.Parse(DropDownList5.SelectedValue), id); if (r == true) { Response.Redirect("Mesas.aspx"); } else { } }