title: How to get current Repeater in ItemCommand event of child Repeater
body: <p>This is HTML Code:</p>
  
  <pre><code>    &lt;asp:Repeater ID="Repeater1" runat="server"
      OnItemDataBound="Repeater1_ItemDataBound"&gt;
      &lt;ItemTemplate&gt;
          &lt;h1&gt;Repeater 1&lt;/h1&gt;
          &lt;asp:Repeater ID="Repeater2" runat="server" OnItemDataBound="Repeater2_ItemDataBound"&gt;
              &lt;ItemTemplate&gt;
                  &lt;h1&gt;Repeater 2&lt;/h1&gt;
                 &lt;asp:LinkButton CommandArgument='&lt;%#Container.ItemIndex%&gt;' CommandName="cmdDeleteItem" ID="lnkDelete" runat="server" &gt;Delete&lt;/asp:LinkButton&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:Repeater&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>This is Code behind:</p>
  
  <pre><code>protected void Repeater2_ItemCommand(object source, RepeaterCommandEventArgs e)
      {
          switch (e.CommandName)
          {
              case "cmdDeleteItem":
                  {
                      var Repeater2= (Repeater)e.Item.FindControl("Repeater2");
                      var list = new ArrayList(Repeater2.Items);
                      list.Add(Repeater2.Items.Count);
                      Repeater2.DataSource = list;
                      Repeater2.DataBind();
                  }
                  break;
          }
      }
  </code></pre>
  
  <p>Repeater2_ItemCommand event may be can't find itself Repeater (Repeater2). </p>