Finding Controls in a Place Holder

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
 
G

George Paiva

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
 

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

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top