Dynamically Added Controls

  • Thread starter Charles A. Lackman
  • Start date
C

Charles A. Lackman

Hello,

I have a custom Web Control that I created in ASP 2.0 that I am populating
with data from a database.

Basically, For i = 0 to table.rows.count

Mycontrol(i) = LoadControl("aControl.ascx")

Page.FindControl("Panel1").Controls.Add(Mycontrol(i))

Next

Each time the control is placed on the form, it stacks on top of the
original one. So only the last one is displayed because all the other ones
are under the last one.

The page is set to Flow.

I have also tried this with:

Page.FindControl("Form1").Controls.Add(Mycontrol(i))

Any suggestions will be greatly appreciated.

Thanks,
Chuck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top