private void FillPacijent() { try { int veza = Convert.ToInt32(hfPacijentID.Value); proxy = new BolnicaService.Service1Client(); var korisnik = proxy.GetPacijentByID(veza); foreach (var kor in korisnik) { txtIDKorisnickiRacun.Text = Convert.ToString(kor.IDKorisnickiRacun); txtUsername.Text = kor.Username; txtPassword.Text = kor.Password; txtIme.Text = kor.Ime; txtPrezime.Text = kor.Prezime; txtOIB.Text = kor.OIB; txtTelefon.Text = kor.Telefon; txtEmail.Text = kor.Email; txtAdresa.Text = kor.Adresa; txtGrad.Text = kor.Grad; txtPTTbroj.Text = kor.PTTBroj; ddlDrzava.SelectedValue = kor.DrzavaID.ToString(); } btnUpdate.Enabled = true; } catch (Exception ex) { lblStatus.Text = ("Došlo je do greške: " + ex); } }