예제 #1
0
        protected void rpCategories_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
            {
                Repeater rpPosts = (Repeater)e.Item.FindControl("rpPosts");

                rpPosts.DataSource = data.Post_SelectHome(rpCategories.Controls.Count);
                rpPosts.DataBind();
            }
        }