Finding Controls in a Place Holder

  • Thread starter Thread starter Elizabeth Harmon
  • Start date Start date
E

Elizabeth Harmon

Hi All

I am new to .Net and cant seem to fingure something out.

I Dynamically create a table based on data pulled from my SQL DB. As the
Information and table are shaped, i insert List Boxes with common answers to
the questions.

I add this table to Placeholder2.controls.add(Blm_Table) and it appears on
the page no problem

Now i need to loop thru the controls, (there are 8 of them) and insert the
answers into the SQL Server DB

How ever i cannot find them in my for each loop

I was using :
For Each control in PlaceHolder2.controls

next



But i cannot find any controls , in fact the control count when trace is
enabled is 0.

What am i Doing Wrong?

thanks in advance
Eliza
 
I think that this has to do with when the controls are created. You may

have to create these controls every time the page re-loads.

George
 
Back
Top