title: Cant find control inside repeater item
body: <p>I am using repeater:</p>
  
  <pre><code>&lt;asp:Repeater ID="rptCategories" runat="server" OnItemDataBound="RptCategories_ItemDataBound"&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Panel CssClass="category-wrapper" ID="pnlCategory" runat="server"&gt;
                      &lt;%# Eval("SponsorshipCategoryName") %&gt;
                      &lt;asp:HiddenField runat="server" ID="hdnCategoryID" Value='&lt;%# Eval("SponsorshipCategoryID") %&gt;' /&gt;
                  &lt;/asp:Panel&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>Depening on my category type I add <code>RadionButtonList</code> or list of check boxes to panel in my code behind.</p>
  
  <p>I set id:</p>
  
  <pre><code>rblItems.ID = "rbl_" + category.SponsorshipCategoryID;
  </code></pre>
  
  <p>and then put control in <code>panel</code>:</p>
  
  <pre><code>panel.Controls.Add(rblItems);
  </code></pre>
  
  <p>Now I nead to be able to loop though all category panels and get those radio button lists or checkboxes.</p>
  
  <p>For this I loop though <code>rptCategories.Items</code> </p>
  
  <pre><code>  foreach (RepeaterItem rptItem in rptCategories.Items)
             {
                 var hdnCategoryID = rptItem.FindControl(HdnCategoryID_ID) as 
                    HiddenField;
                 var pnlCategory = rptItem.FindControl(PnlCategory_ID) as Panel;
                 var categoryID = (hdnCategoryID == null || hdnCategoryID.Value == 
                 string.Empty) ? 0 : int.Parse(hdnCategoryID.Value);
             }
  </code></pre>
  
  <p>It finds hidden field and panel just fine. But when I am trying to find control inside my panel with ID I am interested in it returns null.</p>
  
  <pre><code>var control = pnlCategory.FindControl("rbl_" + categoryToUpdate.SponsorshipCategoryID);
  </code></pre>
  
  <p>I can't use item databound event here.  Any ideas what the issues can be?</p>