protected void lnk_change_status_click(object sender, CommandEventArgs args) { try { int Id = 0; int.TryParse(args.CommandName, out Id); bool status = false; bool.TryParse(args.CommandArgument.ToString(), out status); Tipo_carga o = new Tipo_carga(); o.Id = Id; CatalogCtrl.Tipo_cargaChangeStatus(o, status); fillCatalog(CatalogCtrl.Tipo_cargafillEvenInactive()); } catch (Exception e) { ((MstCasc)this.Master).setError = e.Message; } }