asp.net - Nested Repeater HeaderTemplate issue -
hello using nested repeaters (3 levels) , wanted add header second level repeater, assign title item group. issue is, when add header template second level repeater, code behind can't find third level repeater. if header template empty issue still persists. have suggestions? <asp:repeater runat="server" id="rpt2nd" onitemdatabound="rpt2nd_ondatabound"> <headertemplate></headertemplate> <itemtemplate> <asp:repeater runat="server" id="rpt3rd"> <itemtemplate></itemtemplate> </asp:repeater> </itemtemplate> </asp:repeater> protected void rpt2nd_ondatabound(object sender, repeateritemeventargs e) { var rpt3rd= ((repeater)e.item.findcontrol("rpt3rd")); rpt3rd.datasource = ((keyvaluepair<int, ienumerable<customclass>>)e.item.dataitem).value; rpt3rd.databind(); } you need add if(e.item.itemtype != listitemt