Showing multiple user controls in table
<p>I'm creating a table from code behind file.</p>

<pre><code>MyControl control1 = (MyControl)Page.LoadControl("MyControl.ascx");
control1.ID = "ctl1";
MyControl control2 = (MyControl)Page.LoadControl("MyControl.ascx");
control2.ID = "ctl2";
MyControl control3 = (MyControl)Page.LoadControl("MyControl.ascx");
control3.ID = "ctl3";
MyControl control4 = (MyControl)Page.LoadControl("MyControl.ascx");
control4.ID = "ctl4";

Table table = new Table();

TableCell cell1 = new TableCell();
TableCell cell2 = new TableCell();
TableCell cell3 = new TableCell();
TableCell cell4 = new TableCell();
TableRow row1 = new TableRow();

cell1.Controls.Add(control1);
row1.Cells.Add(cell1);
cell2.Controls.Add(control2);
row1.Cells.Add(cell2);
cell3.Controls.Add(control3);
row1.Cells.Add(cell3);
cell4.Controls.Add(control4);
row1.Cells.Add(cell4);

table.Rows.Add(row1);
placeHolder1.Controls.Add(table);
</code></pre>

<p>But I see only first control gets loaded, others not. Anything missing? </p>
