text box set1 = 1 to 30 = in the query name = br1id to br30id
textbox set 2 = 1 to 30 = in the result output
i dont understand how to create a loop based on 30
You will want to use a control enumerator.
Assuming that this is WinForms:
foreach(Control c in this.Controls) {
if(c is TextBox)
Console.WriteLine(c.Text);
}
And actually, I think that will work for ASP.Net, too. (Even though Control is in a diferent namespace.)
HOWEVER!: This is what a datagrid was made for.