Moving repeater in form removes serverside declaration
<p>I have two repeaters bound to object collections. They both work fine. But when I move repeater B to repeater A's FooterTemplate the serverside declaration of repeater B disappear.</p>

<p>This is not a parent/child relation.</p>

<p>Any ideas why this happens?</p>

<p>Update:</p>

<pre><code>  &lt;asp:Repeater ID="myOuterRepeater" runat="server"&gt;
   &lt;ItemTemplate&gt;
   ...
   &lt;/ItemTemplate&gt;
   &lt;FooterTemplate&gt; 

    &lt;asp:Repeater ID="myInnerRepeater" runat="server"&gt;
     &lt;ItemTemplate&gt;
       &lt;asp:Button OnCommand="btnRemove_Click" ID="btnRemove" RunAt="server" /&gt;
         &lt;%#Eval("ItemId")%&gt;
         &lt;%#String(Eval("Amount"))%&gt;
     &lt;ItemTemplate&gt;
    &lt;/asp:Repeater&gt; 
  &lt;/FooterTemplate&gt;

 &lt;/asp:Repeater&gt;
</code></pre>

<p>When I bind:</p>

<pre><code> myOuterRepeater.DataSource = myCollection
 myOuterRepeater.DataBind()

Dim innerRepeater As Repeater =
 myOuterRepeater.Controls(myOuterRepeater.Controls.Count - 1).Controls(0).FindControl("myInnerRepeater")

innerRepeater.DataSource = myInnerCollection
innerRepeater.DataBind()
</code></pre>
