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); Cliente_comprador o = new Cliente_comprador(); o.Id = Id; CatalogCtrl.Cliente_compradorChangeStatus(o, status); fillCatalog(CatalogCtrl.Cliente_compradorfillEvenInactive(Convert.ToInt32(hfFkey.Value))); } catch (Exception e) { ((MstCasc)this.Master).setError = e.Message; } }