protected void dl_Podkategorije_ItemDataBound(object sender, DataListItemEventArgs e) { int id = (int)DataBinder.Eval(e.Item.DataItem, "id"); using (TriglavBL temp = new TriglavBL()) { int ClanciCount = temp.getClanciCountByPodkategorija(id); int PitanjaCount = temp.getPitanjaCountByPodkategorija(id); LinkButton lb_BrojClanakaP = (LinkButton)e.Item.FindControl("lb_BrojClanakaP"); lb_BrojClanakaP.Text = " W-" + Convert.ToString(ClanciCount); lb_BrojClanakaP.PostBackUrl = "/Public/Home.aspx?PodKategorijaID=" + id; LinkButton lb_BrojPitanjaP = (LinkButton)e.Item.FindControl("lb_BrojPitanjaP"); lb_BrojPitanjaP.Text = " QA-" + Convert.ToString(PitanjaCount); lb_BrojPitanjaP.PostBackUrl = "/Public/QA_Pitanja.aspx?PodKategorijaID=" + id; } }