grouping textboxes together so that all of their properties can be changed with a simple loop
<p>I have 16 textboxes on my ASP.NET page, and I want to set their text values to equal the various values that are in my string array.</p>

<p>In my .ASPX file, I am defining the textbox like this:</p>

<pre><code>&lt;asp:TextBox ID="textbox1" runat="server" /&gt;
</code></pre>

<p>This is how I've currently got it working in the code-behind:</p>

<pre><code>this.textbox1.Text = stringArray[0];
this.textbox2.Text = stringArray[1];
...
this.textbox16.Text = stringArray[15];
</code></pre>

<p>But I want to do something like this:</p>

<pre><code>int i = 0;
foreach (Textbox tb in GroupOfTextboxes)
{
 tb.Text = stringArray[i];
 i++;
}
</code></pre>

<p>What is the easiest way to set up the "GroupOfTextboxes"? I'd like to see code sample, if possible. </p>
