J
josema
Hi...
I have an array of elements that has dinamic size,
sometimes has 5 elements, sometimes 3 etc...
I would like to create a WebForm with as <input type=text>
as elements i have in this array
What is the way to make this, cause if i use a loop i dont
know how i can instanciate the class with another name...
For instance
for (int i=0;i<array.lenght;i++)
{
TextBox mytextbox=new TextBox();
}
the problem with this is that: mytextbox is instanciate so
many times and i dont know how i can give another name to
the control in each round in the loop.
I suppose that its not the correct way, make this.. no?
Thanks in advance...
Josema.
I have an array of elements that has dinamic size,
sometimes has 5 elements, sometimes 3 etc...
I would like to create a WebForm with as <input type=text>
as elements i have in this array
What is the way to make this, cause if i use a loop i dont
know how i can instanciate the class with another name...
For instance
for (int i=0;i<array.lenght;i++)
{
TextBox mytextbox=new TextBox();
}
the problem with this is that: mytextbox is instanciate so
many times and i dont know how i can give another name to
the control in each round in the loop.
I suppose that its not the correct way, make this.. no?
Thanks in advance...
Josema.