title: dynamically adding controls does not displayed inside panel in asp.net web form
body: <p>I have a web form with a table where one row contains panel to add fileupload controls dynamically </p>
  
  <p>the code is as below</p>
  
  <pre><code>      &lt;tr&gt; 
       &lt;td  style="width:70%;display:block; overflow:visible;" &gt;
          &lt;asp:Panel ID="ImagePanel" runat="server"&gt;
          &lt;uc1:AddNewImage runat="server" id="AddNewImage" /&gt;&lt;/asp:Panel&gt;
          &lt;asp:Button ID="AddImage"  OnClick="Unnamed_Click" Text="Add New Image" runat="server" CausesValidation="False" /&gt;
          &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Please Enter Model Items" ForeColor="Red" ControlToValidate="TxtItems"&gt;&lt;/asp:RequiredFieldValidator&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
  </code></pre>
  
  <p>In button click event i am adding new usercontrol to ImagePanel using following code</p>
  
  <pre><code>        Controls.AddNewImage Obj = (Controls.AddNewImage)LoadControl(@"~/Controls/AddNewImage.ascx");
          this.ImagePanel.Controls.Add(Obj);
  </code></pre>
  
  <p>Problem is only two controls are displayed inside the panel, i need to allow upto five controls, but these controls are not displayed inside panel. What should i need to do to get displayed these controls inside the panel. do i need to set any css for Panel. Panel is inside a  tag.        </p>