1
There is how 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 I’d make a for
and so go only changing the "textBox_" + i + "_name"
Of course that doesn’t work but there is some way?
I can do it that way, but the code would be 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?
yeah. that’s right.. I think I need a vacation......
– Dorathoto
Come on... it happens to me all the time! hehe =D
– Miguel Angelo