Dec 14, 2009, 4:47 AM
[CLOSED] [1.0] Loading controls dynamicly ?
Hi,
We used to load our controls dynamicly into a ViewPort, but after swichting to 1.0 we get an javascript error if the control starts with a "Layout".
Javascript Error :
Expected ";"
Loading control : Control control = TemplateControl.LoadControl(myControlVirtualPath);
if (control != null)
{
control.ID = "SomeThing";
ViewPort.Controls.Add(control);
}
Layout control : <ext:BorderLayout ID="BorderLayout1" runat="server">
<West>
...
</West>
<Center>
...
</Center>
</ext:BorderLayout>