Emulating the VB6 control array with ASP.NET
Posted on 2006-03-22
I have a web form which needs to have a certain number of text boxes stacked on top of each other, which I get from a database. Underneath those text boxes are some other text boxes and buttons.
I have tried making 10 text boxes and setting visibility on the ones I need, but I can't move the other text boxes and buttons up. They are already declared in the HTML at a certain position.
I have tried adding text boxes at runtime, but the controls must be placed inside a <form> tag.
I have also tried using a datagrid, but have run into many other problems trying to accomplish what I need to accomplish.
Any help is appreciated. Thanks.