title: Im trying to create an ASP.NET table using a for loop for a set of hyperlinks
body: <p>I have list of hyperlinks which i want to use to create a 2x* table (* is number of hyperlinks)</p>
  
  <p>Here is my code...</p>
  
  <pre><code>for (int rows = 0; rows &lt; hlist.Count; rows++) //Create rows for the number of                    hyperlinks, so i will always have a spare row.
  {  
      TableRow row = new TableRow(); // Create the new rows
      table.Rows.Add(row); //Add rows to the table
      for (int cells = 0; cells &lt; 2; cells++)
      {
          TableCell cell = new TableCell();
  
          for(int h = 0; h &lt; hlist.Count; h++)                  
              cell.Controls.Add(hlist[h]);
          row.Cells.Add(cell);
      }
  }
  </code></pre>
  
  <p>All this does is list all my hyperlinks in a single column table, with a new row for each hyperlink! </p>
  
  <p>Any help would be appreciated!!</p>
  
  <p>Thanks</p>