title: Find a textbox inside repeater inside another repeater
body: <p>I have made a menu list. It consists of two repeater, one with the productType and the other with the content of that product type.
  It is possible to enter how many of the content you want in a text box and I now want to find the textbox and its content.</p>
  
  <p>This is how my ASP.NET code looks like:</p>
  
  <pre><code>&lt;asp:Repeater ID="ParentRepeater" runat="server" OnItemDataBound="ParentRepeater_ItemDataBound"&gt;
          &lt;ItemTemplate&gt;
              &lt;h2&gt;
                  &lt;%#DataBinder.Eval(Container.DataItem, "typenavn") %&gt;&lt;/h2&gt;
              &lt;asp:HiddenField ID="HiddenField1" Value='&lt;%# Eval("id") %&gt;' runat="server" /&gt;
              &lt;asp:Repeater ID="ChildRepeater" runat="server"&gt;
                  &lt;ItemTemplate&gt;
                      &lt;table&gt;
                          &lt;tr&gt;
                              &lt;td style="width: 400px"&gt;
                                  &lt;%#DataBinder.Eval(Container.DataItem, "productName") %&gt;
                              &lt;/td&gt;
                              &lt;td style="width: 400px"&gt;
                                  &lt;%#DataBinder.Eval(Container.DataItem, "pris") %&gt;
                              &lt;/td&gt;
                              &lt;td&gt;
                                  &lt;asp:HiddenField ID="HiddenField2" runat="server" /&gt;
                                  &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/table&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:Repeater&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>This is what I have tried to do so far:</p>
  
  <pre><code>Repeater ChildRepeater;
  
              foreach (RepeaterItem item1 in ParentRepeater.Items)
              {
                  if (item1.ItemType == ListItemType.Item || item1.ItemType == ListItemType.AlternatingItem)
                  {
                      ChildRepeater = (Repeater)item1.FindControl("ChildRepeater");
  
                      foreach (RepeaterItem item2 in ChildRepeater.Items)
                      {
                          if (item2.ItemType == ListItemType.Item || item2.ItemType == ListItemType.AlternatingItem)
                          {
  
                              TextBox txt = (TextBox)item2.FindControl(("MainContent_ParentRepeater_ChildRepeater_0_HB1_0")) as TextBox; // MainContent_ParentRepeater_ChildRepeater_0_HB
  
                          }
                      }
                  }
                  break;
              }
  </code></pre>
  
  <p>First going into the parentrepeater and the going into it's chilrepeaters.
  But it cant find my textbox.</p>
  
  <p>Any body have and idea??</p>