コード例 #1
0
        protected void Cate_RPT_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            DataRowView drv     = e.Item.DataItem as DataRowView;
            Repeater    bar_rpt = e.Item.FindControl("Bar_RPT") as Repeater;

            if (bar_rpt != null && drv != null)
            {
                DataTable dt = barBll.SelBlogBar(Convert.ToInt32(drv["Cateid"]));
                bar_rpt.DataSource = dt;
                bar_rpt.DataBind();
            }
        }