title: Dynamically added TableRows not in Rows collection on Postback
body: <p>I've added TableRows via code-behind to a table. The rows render on the page, but on PostBack, the rows are no longer part of the collection. What is the trick to get these rows to persist so that I can use them on PostBack? </p>
  
  <p>.ascx</p>
  
  <pre><code>&lt;asp:Table id="OrderItemsTable" runat="server"&gt;
  </code></pre>
  
  <p>.ascx.cs</p>
  
  <pre><code>TableRow itemRow = new TableRow();
  
  // Ticket Quantity
  TableCell cell1 = new TableCell();
  cell1.Attributes.Add("align", "center");
  TextBox ticket1QuantityTextBox = new TextBox();
  ticket1QuantityTextBox.Width = Unit.Pixel(30);
  ticket1QuantityTextBox.MaxLength = 3;
  ticket1QuantityTextBox.Attributes.Add("class", "OrderItemTicketQuantityTB");
  ticket1QuantityTextBox.Text = item.Quantity.ToString();
  cell1.Controls.Add(ticket1QuantityTextBox);
  itemRow.Cells.Add(cell1);
  ...
  OrderItemsTable.Rows.Add(itemRow);
  </code></pre>