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?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
brunda kPosted Jun 5, 2012, 4:21 AM
protected void TabContainer1_ActiveTabChanged(object sender, EventArgs e)
{
Control usercontrol = LoadControl("usercontrol.ascx");
Panel1.Controls.Add(usercontrol);
}