c# - Move UserControl to another parent in Page Stack -
i have page of control
s want able move specific controls id different parent control server side
.
a simple example being control loads 2 controls vertically ontop of each other. want module can reference 2 modules id , lay them out horizontally.
i assume have done after page_load()
event controls loaded.
i think can accomplish recursive control.findcontrol()
i'm thinking there more elegant way.
if plan dynamically move controls around page it’s better programmatically set them on page it’s needed.
you should adding controls in oninit method run before page load.
roughly, oninit method
a) check state of page , decide add control
b) add control needed
Comments
Post a Comment