protected void BtnModificar_Click(object sender, EventArgs e) { try { if (TxtCodigo.Text != "") { if (BllTipoBandeja.Exist(TxtCodigo.Text) == 1) { BllTipoBandeja.TipoBandeja ObjActualizar = new BllTipoBandeja.TipoBandeja(); ObjActualizar.TiBaCodi = TxtCodigo.Text; ObjActualizar.TiBaDesc = TxtTipo.Text; ObjActualizar.TiBaEsta = ChkActivo.Checked; int r = ObjActualizar.Update(); if (r > 0) { FillTipoBandeja(); mensaje(Constantes.Actualizar); updateGrid.Update(); ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "script", "mostrarGrid();", true); } } } } catch (Exception ex) { mensaje(Constantes.errorGeneral); } }