I'm drawing a blank on this one.
I have more than 100 textboxes. They each have id's such as "textbox1, textbox2, textbox3, textbox4," etc.
I want to loop through results of a SQL query, dynamically assigning the values for each of these textboxes:
for (int j=0;j<121;j++)
strTxtBoxTmp = "txtBox" + (j+1);
(strTxtBoxTmp).Text = astrMySymbols[j].ToString();
This won't work. Is there a way to do this without manually writing out all the 100+ lines of textbox values? Seems like I could just easily do this with a FOR loop.