Click to See Complete Forum and Search --> : Need help in asp "crosslinking"


sailorB
11-25-2004, 04:15 AM
Hello,
this is my first thread here guys, and actuly it starts with a problem im facing.

im doing my own ecommerce web site, using a freeshopping cart but an advanced one "comersus", i have my own design "im a senior web designer" so i had to work on the code to fit it on my design and it worked 95%.

there are some featured which are existing in the shopping card, but when i try to move it from a page to another, i got an error message related either to the db "access" or "dim" or an missing something...etc. my experiance in asp is zero, i dont do coding with asp or anyother langauge, i tried the comersus forums, but they ask for money for that, and me, doesnt have any for now

im trying to add the crosslinking or indexing code
Home> category > sub_category > item
into several pages and i get an error.
i will insert the code here to take a look at it, and see if you can tell me what is wrong with it
i will add a zip file containing the 2 pages , the page that contains the code, and the page where i want my code to be

sp please if u can help me in this, please do

sailorB
11-25-2004, 04:19 AM
its ok if you will provide me with an online tutorial that show me how to do it


by the way i get this error when i do it as an inclide file
i included listcategories.asp into the header.asp and i got this:

Error Type:
Microsoft VBScript compilation (0x800A0411)
Name redefined
/comersus/includes/settings.asp, line 11, column 4
dim pDatabaseConnectionString, pSupportErrorEmailFrom, pSupportErrorSMTP, pSupportErrorEmailComponent, pSupportErrorShowDetails, pTrapDbErrors
---^

thx in advance

buntine
11-25-2004, 06:19 AM
This error means that you have dimensioned, declared (using Dim) the same variable twice.

Server-Side Includes work by simply grabbing the dtaa within requested document and pasting it into the calling script. So if you declare a variable at some other point in the calling script or any included file, you must not declare it again.

If you remove the referance to that variable by deleting the Dim statement (or just editing it), your program should work.

Regards.

sailorB
11-25-2004, 06:32 AM
thx for the help :)
part of it worked, i can now see them "categories" in the header, but when i click on any of them i got this

Error Type:
Microsoft VBScript compilation (0x800A0411)
Name redefined
/comersus/store/comersus_listCategoriesAndProducts1.asp, line 33, column 6
const numPerPage = 8
-----^

russell
11-25-2004, 12:00 PM
sailor, Buntine just explained what that error meant and how to resolve it. Name redefined means you've declared the variable twice. Find the extra reference and remove it.

sailorB
11-28-2004, 02:57 AM
hello again,
i did what buntine told me "as far i understood" but everytime i edit a line or deleting it, a new error occure, an expected end, a missing word, ...etc.

i mentioned before that i know nothing about ASP or coding in general, so would u take it easy on me, and try to lead me step by step, please .....