UpdatePanel with dynamic controls won't postback
<p>I am using UpdatePanel and loading dynamically the content:</p>

<pre><code> &lt;asp:UpdatePanel runat="server" ID="updatePanel" UpdateMode="Conditional"&gt;
        &lt;ContentTemplate&gt;
            &lt;div id="dashboard-main"&gt;
                &lt;div id="dashboard-content"&gt;
                    &lt;div class="d-content"&gt;
                        &lt;asp:PlaceHolder runat="server" ID="ContentPanel"&gt;
                        &lt;/asp:PlaceHolder&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                &lt;div id="sub-content"&gt;
                    &lt;ul id="nav-02"&gt;
                        &lt;li class="current"&gt;
                            &lt;asp:LinkButton CommandArgument="Stuff" OnClick="LoadMiniDash" runat="server" ID="myStuff"&gt;
                    My Stuff&lt;/asp:LinkButton&gt;&lt;/li&gt;....
</code></pre>

<p>What I do is once the LinkButton is pressed, I load a control to the ContentTemplate:</p>

<pre><code>protected void LoadMiniDash(object sender, EventArgs e)
        {
            string miniDashName = ((LinkButton)sender).CommandArgument;

            Control control = Page.LoadControl("~/controls/Dashboard" + miniDashName + ".ascx");
            ContentPanel.Controls.Clear();
            ContentPanel.Controls.Add(control);
            updatePanel.Update();
        }
</code></pre>

<p>My problem is, that inside this newly loaded control, there is another Button. once clicked, the updatepanel gets emptied and not postback to the control is made. (it does however do a post to the page itself async. but i see the control won't reach its own code once clicked).</p>

<p>what can be the problem?</p>

<p>thanks</p>
