c# - Move UserControl to another parent in Page Stack -


i have page of controls 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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -