protected void Guardar(object sender, EventArgs e) { try { Validar.validarlleno(contrato_.Value); Validar.validarlleno(fechaactivacionfac.Value); Validar.validarlleno(caso.SelectedValue); if (Validar.validartrue(contrato.ActaulizarFechaActivacion(contrato_.Value, fechaactivacionfac.Value, caso.SelectedValue))) { ScriptManager.RegisterStartupScript(this, GetType(), "hwa", "ErrorPunto('ACTUALIZACION EXITOSA!','Prorateo Actualizado correctamente','success');", true); contrato.terceros_idterceros = Request.QueryString["key"]; consultacontrato.DataSource = Validar.Consulta(contrato.ConsultarContratoIdTercero(contrato)); consultacontrato.DataBind(); } else { ScriptManager.RegisterStartupScript(this, GetType(), "hwa", "ErrorPunto('ACTUALIZACION FALLIDA','Comuniquese con el soporte tecnico!','error');", true); } } catch (Exception ex) { textError.InnerHtml = ex.Message; Alerta.CssClass = "alert alert-error"; Alerta.Visible = true; } }