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
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