How To loop the names in C#
<p>I have 10 text boxes namely TB1, TB2, TB3, TB4 and so on.. to TB10</p>

<p>I want to store them into a single string value named toBeStored.</p>

<p>Now I m doing the manual way</p>

<pre><code>String toBeStored=null;
tobeStored=TB1.text.toString();
tobeStored+=TB2.text.toString();
</code></pre>

<p>and so on..</p>

<p>I want to make a for loop and add them</p>

<p>something like this..</p>

<pre><code>for(int i=1;i&lt;11;i++)
{
      toBeStored+=TB+i+.text.ToString()+"  ";
}
</code></pre>

<p>I know that is wrong.. anything to make it right?</p>
