J
John
Hi all,
I need finality on this once and for all please.
I have a main page which contains a couple of placeholders and within these
placeholders, depending on what the user presses, I load different user
controls. This loading of user controls is done within the code-behind of
the main page. The problem is that before loading a user control in place of
another, I need to do a Controls.Add then a Controls.Remove so the viewstate
is loaded then cleared so I can continue.
Now I have posted this message in different fomrs on this NG before but
never had viable solutions to my problem.
Surely people out there are using dynamic user controls (and simply placing
20 user controls inside an area on a page and setting the visible property
isn't practical).
Please someone, provide me with an explanation of how to do this correctly.
Providing pointers to some web sites that explain this (and not just
viewstate) would really help me. I'm not impartial to reading, believe me. I
really need an understaing of this once and for all - again, please.
Regards
John.
I need finality on this once and for all please.
I have a main page which contains a couple of placeholders and within these
placeholders, depending on what the user presses, I load different user
controls. This loading of user controls is done within the code-behind of
the main page. The problem is that before loading a user control in place of
another, I need to do a Controls.Add then a Controls.Remove so the viewstate
is loaded then cleared so I can continue.
Now I have posted this message in different fomrs on this NG before but
never had viable solutions to my problem.
Surely people out there are using dynamic user controls (and simply placing
20 user controls inside an area on a page and setting the visible property
isn't practical).
Please someone, provide me with an explanation of how to do this correctly.
Providing pointers to some web sites that explain this (and not just
viewstate) would really help me. I'm not impartial to reading, believe me. I
really need an understaing of this once and for all - again, please.
Regards
John.