Dec 23, 2010, 4:58 AM
dynamic load usercontrol in ext:pannel.
Hi everyone,
I Have a 4 user controls in the page. I display it one by on in group tab and after save button the other group tab is open in which the user control is load. Now i Want that how can i load the user control dynamically.
I writs as following code.
I Have a 4 user controls in the page. I display it one by on in group tab and after save button the other group tab is open in which the user control is load. Now i Want that how can i load the user control dynamically.
I writs as following code.
GroupTab grpTab = new GroupTab();
grpTab = (GroupTab)this.Parent.FindControl("GroupMedicalHistory").FindControl("grpPastMedicalHistory");
grpTab.SetActiveTab(0);
Ext.Net.Panel pl = new Ext.Net.Panel();
pl = (Ext.Net.Panel)this.Parent.FindControl("GroupMedicalHistory").FindControl("grpPastMedicalHistory").FindControl("pnlPastMedicalHistory");
pl.LoadContent("~/UserControl/PastMedicalHistoryControl.ascx");
Please help me out...