private void fillBrojLjudi() { BrojLjudiSelect ljudi = new BrojLjudiSelect(); BrojLjudiResult result = this.menager.execute(ljudi) as BrojLjudiResult; if (result.Success) { DropDownListBrojLJudi.DataSource = result.brojLjudi; for (int i = 0; i < result.brojLjudi.Count; i++) { DropDownListBrojLJudi.DataValueField = "IdBroj"; DropDownListBrojLJudi.DataTextField = "Broj"; } DropDownListBrojLJudi.DataBind(); } }
protected void UpdateNumberOfPeople_Click(object sender, EventArgs e) { Button btn = (Button)sender; if (btn != null) { int id = Convert.ToInt32(btn.CommandArgument); ButtonIsertUpdatePeople.Text = "Update Number"; Label1.Text = "Update number"; BrojLjudiSelect select = new BrojLjudiSelect() { brojLjudi = new BrojLjudiItem { IdBroj = id } }; BrojLjudiResult rez = (BrojLjudiResult)menager.execute(select); if (rez.Success) { HiddenFieldPeople.Value = rez.brojLjudi[0].IdBroj.ToString(); TextBoxPeople.Text = rez.brojLjudi[0].Broj.ToString(); } } }
private void fillNumberOfPeople() { BrojLjudiSelect selectPeople = new BrojLjudiSelect(); BrojLjudiResult rez = this.menager.execute(selectPeople) as BrojLjudiResult; }