protected void Page_Load(object sender, EventArgs args) { if (!IsPostBack) { try { fillCatalog(CatalogCtrl.NomfillEvenInactive()); } catch (Exception e) { ((MstCasc)this.Master).setError = e.Message; } } }
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); Nom o = new Nom(); o.Id = Id; CatalogCtrl.NomChangeStatus(o, status); fillCatalog(CatalogCtrl.NomfillEvenInactive()); } catch (Exception e) { ((MstCasc)this.Master).setError = e.Message; } }