I have a placeholder on my ASPX Page:
<asp:PlaceHolder ID="phControlContainer" runat="server"></asp:PlaceHolder>
In the code behind on PageLoad I generate a RadHtmlChart with an ID="MyChart" and add it to the placeholder by doing the following:
phControlContainer.Controls.Add(chart);
I can see it on the page at this point.
Then on another PostBack OnButtonClick I want to modify the chart so I attempt to find it:
RadHtmlChart chart = (RadHtmlChart)phControlContainer.FindControl("MyChart");
It finds nothing and chart is null. Additionally phControlContainer.Controls.Count is zero.