Print Page | Close Window

dynamic-include problems

Printed From: SalesCart
Category: Legacy Products
Forum Name: SalesCart Standard / PRO / SQL
Forum Description: All questions pertaining to SalesCart Standard, PRO and SQL should be posted here.
URL: http://forum.salescart.com/forum/forum_posts.asp?TID=526
Printed Date: April/28/24 at 5:37pm
Software Version: Web Wiz Forums 11.04 - http://www.webwizforums.com


Topic: dynamic-include problems
Posted By: drafting
Subject: dynamic-include problems
Date Posted: February/14/06 at 2:49pm
I am trying to use the dynamic-include and am getting this error message:

Microsoft VBScript compilation error '800a0411'

Name redefined

?, line 0

Class CSimpleAdo
------^


I have tried all the kb articles and nothing has worked. Any help is greatly appreciated!



Replies:
Posted By: mikeb
Date Posted: February/28/06 at 8:52am
Do you have any "include" calls in your dynamic include page? Probably. There shouldn't be any in there. It should be a plain jane page or text only.


Posted By: drafting
Date Posted: May/02/06 at 3:50pm
I am not quite sure what you are asking. The dynamic-include page that I am using is the one that came with Salescart. I have it working on two other sites but can not get it to work on this one.


Posted By: drafting
Date Posted: May/02/06 at 5:15pm
I think I figured it out. The dynamic-include.asp page does not work when you are displaying the cart contents (subtotal and number of items in cart) on the same page. YOu can do one or the other but not both. Is there any way to get around this?


Posted By: mikeb
Date Posted: May/03/06 at 8:39am
It will work. However, look at productpage.asp (the generic product page thats shipped with the product). There is a bunch of code at the top of the page. That code is what generates the information for the cart contents button. That needs to be at the top of or added to the page that you are trying to display the cart contents....


Posted By: mikeb
Date Posted: May/03/06 at 8:41am
Name redefined

?, line 0

Class CSimpleAdo
------^


Ok, looking back at this error message....what it means is that you have duplicated an include. For example, you have something like this twice on the page...which you cannot do....

<!--#include file="../cgi-bin/codepage.asp"-->


Posted By: drafting
Date Posted: May/03/06 at 10:36am
So all I have to do is erase all the duplicate include pages? Should that fix the problem?


Posted By: mikeb
Date Posted: May/03/06 at 10:51am
You need to erase the duplicate code include "entry" you've added to the page...not the pages themselves.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.04 - http://www.webwizforums.com
Copyright ©2001-2015 Web Wiz Ltd. - http://www.webwiz.co.uk