Dynamic Control Follow Up

J

Jason MacKenzie

I posted a question yesterday about dynamically created controls and
retrieving the value on postback. Easy enough.

Declare page level textbox for example. In Page_Init create a new instance
of textbox. Add it to a placeholder and that's it. I can now retrieve the
textbox.text property in a button_click event

How do I do this with controls that are created from a database.

For example, I have some web user controls. Depending on the employee I will
need a different number of these controls with different property settings
for each one.

But I obviously can't declare them at the page level beforehand.

Hopefully this is clear and any advice is appreciated,

Jason MacKenzie
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top