Welcome Guest Search | Active Topics | Sign In | Register

AspxLab javascript errors using LoadControl() Options
luxusxx
Posted: Wednesday, November 26, 2008 2:26:51 AM
Rank: Newbie
Groups: Member

Joined: 11/26/2008
Posts: 1
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.
eo_support
Posted: Wednesday, November 26, 2008 6:42:57 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You may want to try it without ASP.NET AJAX first. AspxLab 2.7 is a very old version and it was released before AJAX was released. So I do not think it runs well with AJAX.

We have several newer releases after AspxLab 2.7. So you may want to take a look of the newest version. Older releases are not being updated.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.