Description

Anthem controls can be dynamically created and added to the page just like all other server-side controls. You need to watch out for the same things you watch out for when dynamically adding non-Anthem controls.

Example

Click the button to add new buttons to the page. Click any of the new buttons to update a label on the page. All of this is done using call backs.

Remarks

It's up to you to remember what controls you added to the page so that you can re-add them at the beginning of each call back. This is the same thing you'd have to do during post backs.

If you expect your dynamic controls to fire events during call backs, you need to create them during or before the Load event.