There are two repeaters to store my object object. I both work fine but when I do a FooterTemplate repeater Repeater B. The serverside declaration of the disappearance repeaters B go.
This is not a parent / child relationship.
Any idea why this happens?
Update:
& lt; ASP: Repeater ID = "myOuterRepeater" runat = "server" & gt; & Lt; ItemTemplate & gt; ... & lt; / Item theme & gt; & Lt; FooterTemplate & gt; & Lt; Asp: Repeater ID = "myInnerRepeater" runat = "server" & gt; & Lt; ItemTemplate & gt; & Lt; ASP: Button on Command = "BTNRWWlink" ID = "BTN Removal" run at = "server" /> & Lt;% # Eval ("Itemid")%> & Lt;% # string (Eval ("zodiac"))% & gt; & Lt; ItemTemplate & gt; & Lt; / ASP: Repeater & gt; & Lt; / FooterTemplate & gt; & Lt; / ASP: Repeater & gt; When I bind:
myOuterRepeater.DataSource = myCollection myOuterRepeater.DataBind () retarded innerRepeater repeater = myOuterRepeater.Controls (myOuterRepeater.Controls.Count In - 1) .Controls (0) .FindControl ("myInnerRepeater") innerRepeater.DataSource = myInnerCollection innerRepeater.DataBind ()
There is a control nest inside a repeater (with a second repeater), it is not the enclosed repeater's page but the longest part of the part.
A reference to nested repeater you will need to use to obtain:
repeater nest = enclosingRep.FindControl ("nestedRepeaterId");
Comments
Post a Comment