I called it outside of the <% %> and had the <% %> inside the include file ...
Main Topics
Browse All TopicsHello,
I am modifying parts of an e-commerce suite my company has purchased. In doing so, I've been using include files so i do not directly have to change their code a lot. I found that in several of my pages used the same lines of logic repeatedly... So, I took them out and created another .inc file and made functions of them.. included them in one main page with an html #include file call. They worked great, so I know the functions are good.
The problem came on some other pages.. I began getting this error :
Microsoft VBScript compilation error '800a03ea'
Syntax error
C:\WEB\EMACOLA\WEBVIEWS\WE
Function CheckStock(LamItem, qtyRequested, returnType) with the little arrow under the F.
Oddly enough if I removed the <% %> from my include file, these error pages worked... However the first page no longer worked b/c it didnt' know to use ASP and instead just printed out my functions.
So, I no longer included the include file and instead just typed the function into the include file that had the commands to call it... even here i get the syntax error on F .
I have NO IDEA what is going on. Can someone please shed some light .. Any suggestions or input will be great.
Thanks so much,
K H
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I've only ever included it on the one page.. and it is out of the <% %>. The pages are all tied together, so it must also be being included inside of the other by dependencies in the app.
That's why I tried removing the include file altogehter and just putting the functions directly into each page that called them... But I get the same error that way too which I really do'nt understand.
>>the first page no longer worked b/c it didnt' know to use ASP and instead just printed out my functions.
Are you sure that you are running the page through server? Not just opening the ASP file in browser. Reason for asking this is in your error message it says... C:\WEB\EMACOLA\WEBVIEWS\WE
ASP error will not show local path it should have read something like..http://localhost/inc
Note: If you are running through Server please ignore my comments! ;-)
Business Accounts
Answer for Membership
by: joeposter649Posted on 2004-06-04 at 13:24:51ID: 11236397
When you use the include you need to either have it
inside the <% %> and leave it out of the include
or
outside the <% %> and put it in your incude.