Link to home
Create AccountLog in
Avatar of gsutphin11
gsutphin11

asked on

Emulating the VB6 control array with ASP.NET

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.
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of gsutphin11
gsutphin11

ASKER

I was using the Page_Load event. I will try the Page_PreRender. Thanks.