protected void Page_Init(object sender, EventArgs e) { referenca = new ServisAutomehanikeREFER.ServisKlijentClient(); listaElemenata = new List <string>(); ddlPlacanje.Items.Add("Karticom"); ddlPlacanje.Items.Add("Gotovinski"); if (referenca.prikazPodatakaICena(View.korisnik).Length > 0) { string[] niz = referenca.prikazPodatakaICena(View.korisnik).Split('|'); var myList = new List <string>(); foreach (var s in niz) { if (!myList.Contains(s)) { myList.Add(s); } } foreach (string element in myList) { lbCeneITroskovi.Items.Add(element); listaElemenata.Add(element); } } }
protected void Page_Load(object sender, EventArgs e) { referenca = new ServisAutomehanikeREFER.ServisKlijentClient(); }