Exemplo n.º 1
0
        protected void dl_Kategorije_ItemDataBound(object sender, DataListItemEventArgs e)
        {
            int id = (int)DataBinder.Eval(e.Item.DataItem, "id");

            using (TriglavBL temp = new TriglavBL())
            {
                int ClanciCount  = temp.getClanciCountBykategorija(id);
                int PitanjaCount = temp.getPitanjaCountBykategorija(id);

                LinkButton lb_BrojClanaka = (LinkButton)e.Item.FindControl("lb_BrojClanaka");
                lb_BrojClanaka.Text        = " W-" + Convert.ToString(ClanciCount);
                lb_BrojClanaka.PostBackUrl = "/Public/Home.aspx?KategorijaID=" + id;


                LinkButton lb_BrojPitanja = (LinkButton)e.Item.FindControl("lb_BrojPitanja");
                lb_BrojPitanja.Text        = " QA-" + Convert.ToString(PitanjaCount);
                lb_BrojPitanja.PostBackUrl = "/Public/QA_Pitanja.aspx?KategorijaID=" + id;
            }
        }