title: Nested Repeater - ItemCommand only fires if attached via markup
body: <p>I have a repeater nested in the <code>ItemTemplate</code> of a parent Repeater. I usually connect them to controls declaratively in markup. </p>
  
  <pre><code>&lt;asp:Repeater runat='server' id='myParentRepeater'&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:Repeater runat='server' id='mynestedRepeater' OnItemCommand='myMethod'&gt;
             ...
          &lt;/asp:Repeater&gt;
          ...
      &lt;/ItemTemplate&gt;
  &lt;/asp&gt;
  </code></pre>
  
  <p>Today I decided to do it in the code-behind, specifically in the <code>ItemDataBound</code> method of the parent repeater./</p>
  
  <pre><code>((Repeater)e.item.FindControl("MyParentRepeater")).ItemCommand += ...
  </code></pre>
  
  <p>But it won't work this way. Unless I use markup the event handler won't fire. Why is this? Or, assuming it <em>should</em> work, can someone tell me what have I done wrong?</p>