You've set the page language to JS, but are using VB comments.
'List the contents of the current
should be
// List the contents of the current
Main Topics
Browse All TopicsI have an asp script that I'm using to display the contents of a folder. I would like to display this list on a separate page and want to include the file listing page on another page. The file listing script works fine when on its own page, however when I try to use it as an include file I get the error:
Microsoft JScript compilation error '800a03f7'
Unterminated string constant
/IRO/studentdata/demograph
'List the contents of the current
--------------------------
below is my include file and in the code add on is the page where the include is located. Why am I getting this error and how can I fix it? Thanks for any help.
http://www.glowfishtw.com/
Include file:
<%
'List the contents of the current
'***** Enter a BOOKMARK TITLE for this web page in the line below ***
strTitle = "Title goes here"
'***** Enter a MAIN HEADING for this web page in the line below *****
strHeading = "Heading goes here"
'You don't need to change anything below this line
'*************************
%>
<%response.write ("<TITLE>" & strTitle & "</TITLE>")%>
<%
response.write ("<H1>" & strHeading & "</H1>")
set FileSysObj=CreateObject("S
strFileAndPath = request.servervariables("S
strPathOnly = Mid(strFileAndPath,1 ,InStrRev(strFileAndPath, "/"))
strFullPath = server.mappath(strPathOnly
set fldr=FileSysObj.GetFolder(
response.write("<H2>Folder
set FolderList = fldr.SubFolders
For Each FolderIndex in FolderList
Response.Write("<A HREF='" & FolderIndex.name & "'>" & FolderIndex.name & "</A><BR>")
Next
response.write("<H2>Files list</H2>")
set FileList = fldr.Files
For Each FileIndex in FileList
'This bit excludes this page (and other asp files) from the list of links
if Lcase(right(FileIndex.Name
Response.Write("<A HREF='" & FileIndex.name & "'>" & FileIndex.name & "</A><BR>")
end if
Next
%>
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.
Business Accounts
Answer for Membership
by: strickddPosted on 2009-07-28 at 05:20:43ID: 24959886
It looks like your server is processing .asp files through the wrong parser, it appears to be using JScript
v\asp.dll
Microsoft JScript compilation error '800a03f7'
You can verify this if you go into the website properties through IIS. In the Home Directory tab click the "Configuration" button. In the list of mappings, you should see ".asp" and its "Executable Path" should be: C:\WINDOWS\system32\inetsr
If it isn't that is your problem, if it is let me know.