Hi i have created simple aspxlab menu (basemenu) in AspxLabControlName.ascx file and it works fine when i add it to aspx page normally but when i try to add it like this (.cs file):
AccordionPane ap = new AccordionPane();
Control details = LoadControl("~/Controls/AspxLabControlName.ascx");
[...]
Control[] contentControls = { details };
PaneControlTemplate cont = new PaneControlTemplate(contentControls);
ap.Content = cont;
Control header = LoadControl("~/Controls/ControlHeader.ascx");
[...]
Control[] headerControls = { header };
PaneControlTemplate head = new PaneControlTemplate(headerControls);
ap.Header = head;
accAllAtachments.Panes.Add(ap); //AjaxControlToolkit.Accordion accAllAtachments
this gives me javascript error: ...expected (
in following line:
<!-- Begin AspxLab Menu AttachmentsMenu.
http://www.aspxlab.com -->
i thing
Control details = LoadControl("~/Controls/AspxLabControlName.ascx");
part causing problems
what should i do to make it work when loading that control by LoadControl?
I'm using AspxLab.WebControls.dll 2.7.1.0, VisualStudio 2005, (asp.net 2.0)
thanks in advance.