Load user control content on tab panel change of TabContainer
I want to load my user controls content dynamically when the tab panel of the tab container is changed. How can I do this?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

brunda kRank #3,804 · 389 reputationPosted Jun 5, 2012, 12:21 AM EDT
protected void TabContainer1_ActiveTabChanged(object sender, EventArgs e)
{
Control usercontrol = LoadControl("usercontrol.ascx");
Panel1.Controls.Add(usercontrol);
}