Click here to Skip to main content
16,015,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hallo everyone,

Friends of mine and I working on a project which widely uses UserControl. Since the beginning of the project we did face many kinds of difficulties. The one which I am going to ask you is one of them. We load and unload UserControls on a section of page. The loading and unloading event is done from the master page side and the actual load and unload of controls take place on the child side page.
The question is:
Without registering UserControls on the master page, is that possible to load and unload a UserControl within a loaded UserControl?
Or: Is that possible to register UserControls dynamically and then load and unload them within a loaded UserControl?

If I am not clear enough, please let me know.

Thanks
Posted
Comments
Parwej Ahamad 26-Sep-11 4:26am    
You can use LoadControl method to load any user control. Have look this site:
http://msdn.microsoft.com/en-us/library/c0az2h86.aspx
http://forums.asp.net/t/1231126.aspx/1

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900