Oct 07, 2012, 6:05 AM
Dynamically Render user control into panel content section
I have a user control contains ASP.net controls,
I want to render this control inside ext.net panel in the content section
The following is the code i used, but it seems there is a problem in rendering the user control inside panel content :
I want to render this control inside ext.net panel in the content section
The following is the code i used, but it seems there is a problem in rendering the user control inside panel content :
Ext.Net.Panel oPanel = new Ext.Net.Panel();
oPanel.ID = "Test1";
oPanel.Height = 100;
ITEC_Hijri oITEC_Hijri = new ITEC_Hijri();
oITEC_Hijri.ID = "ITEC_Hijri1";
oPanel.ContentContainer.Controls.Add(oITEC_Hijri);
oPanel.Render(pnlBuildForm1, 0, RenderMode.InsertTo);
ResourceManager1.Controls.Add(oPanel);
oPanel = new Ext.Net.Panel();
oPanel.ID = "Test2";
oPanel.Height = 100;
oITEC_Hijri = new ITEC_Hijri();
oITEC_Hijri.ID = "ITEC_Hijri2";
oPanel.ContentContainer.Controls.Add(oITEC_Hijri);
oPanel.Render(pnlBuildForm2, 0, RenderMode.InsertTo);
ResourceManager1.Controls.Add(oPanel);