posted by 네코냥이 2013. 6. 12. 14:16


원본 출처: http://www.c-sharpcorner.com/UploadFile/17e8f6/nested-repeater-control-in-Asp-Net-4-0/



protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)

{

    if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)

    {

        //Accessing the inner repeater control on ItemBound event of Parent Repeater Control

        Repeater innerRepeater = (Repeater)e.Item.FindControl("innerRepeater");

        //here e.Item basically refers to your RepeaterItem Class of the respective ItemTemplate

    }

}