title: Textbox values to array
body: <p>i've got a few Textboxes and I want to loop through them and check if they contain a value, and if they do, put it into an array. </p>
  
  <p>The textboxes are called txtText1, txtText2....txtText12. 
  This is what I got so far:</p>
  
  <pre><code>for (int i = 1; i &lt; 13; i++)
  {
     if(txtText[i] != String.Empty)
      {
          TextArray[i] = Convert.ToString(txtText[i].Text);
      }
  }
  </code></pre>
  
  <p>..but txtText[i] is not allowed.</p>
  
  <p>How can I loop through these boxes?</p>