FindControl Inside accordion ContentTemplate
<p>I have an accordion and inside the ContentTemplate i have placed and dropdownlist.
I am using the Accordion1_ItemDataBound to bind datatable to the dropdownlist.
The main problem is that i cant find the dropdownlist.</p>

<pre><code>&lt;ContentTemplate&gt;
                                &lt;table border="0" width="490px" style="background-color: transparent"&gt;
                                    &lt;tr&gt;
                                        &lt;td&gt;
                                        &lt;/td&gt;
                                    &lt;/tr&gt;
                                    &lt;tr&gt;
                                        &lt;td align="right"&gt;
                                            &lt;asp:TextBox runat="server" ID="txtNotes" TextMode="MultiLine" Height="100px" Width="200px"&gt;&lt;/asp:TextBox&gt;
                                        &lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:Label runat="server" ID="lbltest"&gt;&lt;/asp:Label&gt;
                                            &lt;asp:DropDownList runat="server" ID="ddlStatus" Visible="true"&gt;
                                            &lt;/asp:DropDownList&gt;
                                        &lt;/td&gt;
                                        &lt;td&gt;
                                            &lt;asp:Button runat="server" ID="btnSubmit" Text="שמור נתונים" /&gt;
                                        &lt;/td&gt;
                                    &lt;/tr&gt;
                                &lt;/table&gt;
                                &lt;%--&lt;asp:Label ID="lblOrderID2" runat="server" Text='&lt;%#Eval("MidaClient_ID")%&gt;'&gt;&lt;/asp:Label&gt;--%&gt;
                                &lt;%--&lt;asp:Label ID="lblNotes" runat="server" Text='&lt;%#Eval("Cand_Num")%&gt;'&gt;&lt;/asp:Label&gt;--%&gt;
                                &lt;%-- &lt;asp:Button ID="btnSend" runat="server" Text="שלח" CommandName="send" /&gt;--%&gt;
                            &lt;/ContentTemplate&gt;

protected void Accordion1_ItemDataBound(object sender, AjaxControlToolkit.AccordionItemEventArgs e)
        {
            if (e.ItemType != AjaxControlToolkit.AccordionItemType.Content)
            {
                DataTable dt = new DataTable();
                //dt = db.GetStatus();
                dt.Columns.Add(new DataColumn("OfferID", typeof(int)));
                dt.Columns.Add(new DataColumn("TypeOffer", typeof(string)));

                dt.Rows.Add(new object[] { 0, "First Row" });
                dt.Rows.Add(new object[] { 1, "Second Row" });
                if (dt != null)
                {
                    DropDownList ddl = new DropDownList();
                    ddl = (DropDownList)e.AccordionItem.FindControl("ddlStatus");
                    if (ddl != null)
                    {
                        ClientScript.RegisterStartupScript(this.GetType(), "AlertBox", "alert('dropdownlist found');", true);
                    }
                    else
                    {
                        ClientScript.RegisterStartupScript(this.GetType(), "AlertBox", "alert('dropdownlist not found');", true);
                    }
                    //ddl.DataSource = dt;
                    //ddl.DataTextField = "Name";
                    //ddl.DataValueField = "ID";
                    //ddl.DataBind();
                }
            }


protected void LoadCandidates() 
{ 
    pds = new PagedDataSource(); 
    pds.DataSource = db.GetCandidates(456123, 6, "1037").DefaultView; 
    pds.AllowPaging = true; 
    pds.PageSize = 10; 
    if (SelectedPage &gt; (pds.PageCount - 1)) 
        SelectedPage = pds.PageCount - 1; 
    if (SelectedPage &lt; 0) 
    { 
        SelectedPage = 0; 
    } 
    pds.CurrentPageIndex = SelectedPage; 
    Accordion1.DataSource = pds; Accordion1.DataBind(); 
}
</code></pre>
