• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 159
  • Last Modified:

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.
0
gsutphin11
Asked:
gsutphin11
1 Solution
 
Bob LearnedCommented:
>>I have tried adding text boxes at runtime, but the controls must be placed inside a <form> tag.
Were you trying to add the TextBox controls in the Page_Load event or the Page_PreRender event?

Bob
0
 
gsutphin11Author Commented:
I was using the Page_Load event. I will try the Page_PreRender. Thanks.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now