If I want to dynamically show or hide several User Controls. Would it be better to use Panels that load the User Controls and then show or hide the Panels (visible=true/false) or would it be better to use a PlaceHolder and load (add) or unlaod(clear) them at runtime (LoadControl())?
a) I have a page that uses AJAX UpdatePanel. The page has 10 Panels, each Panel loads a User Control. In code behind I make the a Panel visible or invisible, only show one at a time. This solution is simple, as all the User Controls are in the page, it's easy to refer to them and their internal controls.
b) Loading controls dynamically using LoadControl seems a bit more complicated.
I wonder if there are any benefits compared to the method a. ViewState issues? Render performance issues? HTML size issues?
Thank you,
A