Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to load my user controls data dynamically when the tab panel of the tab container is changed. How can I do this?
Posted

C#
Control taha = LoadControl("taha.ascx");
Panel1.Controls.Add(taha);
 
Share this answer
 
Comments
Member 8491154 2-Jun-12 8:25am    
but where do i use this code?
I have TabPanel, not Panel.
Found the answer at:

Lazy loading tabs
 
Share this answer
 

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