protected void ButtonEnviarPresupuesto_Command(object sender, CommandEventArgs e) { ButtonEnviarPresupuesto.Visible = false; ButtonRechazar.Visible = false; ButtonTerminado.Visible = true; if (ccc == null) { ccc = new Contrato(); ccc.Importe = Convert.ToDecimal(TextBoxImporte.Text); ccc.IdContrato = Convert.ToInt32(TextBoxIDContrato.Text); if (ccc.Importe > 0) { contratoBLL.actualizarPresupuesto(ccc); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Importe inválido');window.location ='VerContrato_P.aspx';", true); } } Response.Redirect("ListaContratos_P.aspx"); }