示例#1
0
 protected void btnModificarEdicion_Click(object sender, EventArgs e)
 {
     try
     {
         limpiarPaneles();
         gestorEdicion.modificarEdicion(gestorEdicion.edicion.idEdicion, txtNombreEdicion.Value, ddlTamañoCancha.SelectedValue, ddlTipoSuperficie.SelectedValue, txtPuntosPorGanar.Value, txtPuntosPorEmpatar.Value, txtPuntosPorPerder.Value, ddlGenero.SelectedValue);
         ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "closeModal('modalEdicion');", true);
         cargarRepeaterEdiciones();
         limpiarModalEdicion();
         lblTituloModalEdicion.Text  = "Agregar Nueva Edición";
         btnSiguienteEdicion.Visible = true;
         btnModificarEdicion.Visible = false;
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "openModal('modalEdicion');", true);
         GestorError.mostrarPanelFracaso(ex.Message);
     }
 }