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
Here's how to get a control by name inside a Form:
// get control by name: TextBox tb = this.Controls["textBox1"] as TextBox; if (tb != null) { // your code here }