title: Looping through table controls to get cell text
body: <p>I have 6 tables named Seq(num)tab now I have a big operation of code to perform on each one rather do a massive switch case for each table I would rather have a loop which can loop through the tables basically like this (in theory) should do. obviously very stripped out for display purposes</p>
  
  <pre><code>for (int i = 1; i &lt;= totalseq; i++)
  {
      string originstart = (Table)Page.FindControl("Seq" + I + "Num").Rows[1].Cells[0].Text;
  
      // have also tried this
  
      string originstart = Page.FindControl("Seq" + I + "Num", as Table).Rows[1].Cells[0].Text;
  
      //lots of code using originstart
  }
  </code></pre>
  
  <p>However I just get different errors why it wouldn't work ie. (1st example) does not contain definition for rows.  its a table control of course its got a rows definition lol</p>
  
  <p>Anyone have any ideas?</p>