Is there a way to manipulate webcontrols name dynamically?
ex: I have 90 TextBox
textBox_01_name
textBox_02_name
textBox_03_name
textBox_04_name
...
Today I have the following code
if (textBox_01_name.Text != Topo_DAraay[0].ValueDefaultSQL)
{
for each element.
I thought about doing a for
and so go only by changing "textBox_" + i + "_name"
Of course that does not work, but is there anyway?
I can do this, but the code would look as big as the original
string campo = "textBox_" + i "_name";
TextBox teste1 = (TextBox)FindControl(campo);
if (teste1.Text != Topo_DAraay[0].ValueDefaultSQL)
{
Is there any way?