Computer Learning Zone CLZ Access Excel Word Windows

Whether or not you can never become great at something, you can always become better at it. Don't ever forget that! And don't say "I'll never be good." You can become better! and one day you'll wake up and you'll find out how good you actually became.

-Neil deGrasse Tyson
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
Home > Forums > ASP
Active Server Pages Forum

Welcome to the ASP Forum. I love Classic ASP. My whole web site is built with that, Javascript, and of course HTML from scratch. Post your questions here. Feel free to ask about ASP.NET too. I'm not an expert (yet) but I can make my way around it, and yes, I'm brushing up my skills to I can prepare some ASP.NET lessons soon.

This forum is for everyone to read but only students (paid customers) can post here. If you'd like to become a student, you can watch ASP Beginner Level 1 for free, and then purchase Level 2 for just $1.00 here. After you create a logon, you will have full access to the Forums.

Subscribe to this forum and receive an email update whenever new posts are added. You will also be notified by email if any conversations you are involved in receieve new comments. Yes, even non-students can subscribe to update notifications.

Click Here to Post a comment and start a new discussion!

ASP Include File Upload Images   Link  
Dg Ewing 
2 months ago
I can not get the following include line to work.  but when I copy the code from the openconnection-process.asp and insert it it works fine.
<!--#include file = "openconnection-process.asp"-->

response.write Conn

SQL = "Select * from envoyT ORDER BY id"
rs.Open SQL, Conn

while not rs.eof

Response.write "Envoy: " & rs("id") & " " & rs("firstname") & " " & rs("lastname") & "<br>"

<!--#include file = ../process/"closeconnection-process.asp"-->

response.write Conn


Richard Rost
2 months ago
The include directive should be OUTSIDE of your ASP tags
Richard Rost
2 months ago

Richard Rost
2 months ago
Same with the bottom one too. Outside of all ASP tags.
Dg Ewing
55 days ago
Great, error #1 fixed
now I have:
<!--#include file = "openconnection-process.asp"-->

but now I am getting:

  Active Server Pages error 'ASP 0116'
  Missing close of script delimiter
  /openconnection-process.asp, line 4
  The Script block lacks the close of script tag (%>).

This is the openconnection-process.asp and line 4 is the first code line that has <%: [note i blanked out stuff that works if I don't use include  ]:

Line 4 <%

Server.ScriptTimeout = 30

' ?????????????/This is RR code see Winhost Lesson 9 and ASP 302 part 3 1:15

CONNECTSTRING ="Provider=sqloledb; Data; Initial Catalog=i blanked out ; Uid=i blanked out; password = i blanked out;"
Set Conn= Server.CreateObject("ADODB.

Dg Ewing
55 days ago
the code was not pasted correctly due to my post being too long but this is the last few lines.
                Set Conn= Server.CreateObject("ADODB.Connection") CONNECTSTRING
Set rs = Server.CreateObject("ADODB.Recordset")

Richard Rost
55 days ago
It's better if you can post a screen shot so I can see EXACTLY what's going on, and my site will filter characters sometimes.
Alex Hedley
55 days ago
<!--#include file = ../process/"closeconnection-process.asp"-->
<!--#include file="../process/closeconnection-process.asp"-->
Dg Ewing
54 days ago

Dg Ewing
54 days ago
Thanks Alex,  I have never understood the ../ path notation. so maybe I will learn about that also.  I recall one of RR's vid where he uses "virtual" vs "file" if the files are not in the same folder.  So I have moved everything to the root to eliminate that nuance .

However I do not think that the path was the problem and now that I added ../ the file wasn't found.  before I added ../ the file was found and errored on line 4 (the first line of code, I have 3 blank lines).  I then deleted the 3 blanks lines and the error msg said line 1.  So i know that it is trying to read the file.  I will revert to ...file = "openconnection-process.asp" and upload an image of the 2 files  and image of the error msg.

Dg Ewing
54 days ago

Dg Ewing
54 days ago
the top file is the executed file and the middle is "include" file and the bottom is the error
Dg Ewing
54 days ago
holy moley.....I just added as the first line of code what the error said was missing:  %> the very first code is a "close" and then the 2nd is an open <% and it works!!!   ???? what is that about
Dg Ewing
54 days ago

Dg Ewing
54 days ago
All this time that I have wasted, mine and yours....I KNOW what the problem was.

look at line 19 of the "openconnection-process.asp"  and yell at me for using >% as the close and not %> was telling me that I needed a close at the first line of code and I took that literally "at" line 4 , but should have recognized it needed a close for the open "of" line 4  at line 19 which I thought I had ...

geez....I have spent more time on chasing "silly" typos/syntax than writing all of the code.

Any way thanks for your help and support...and keep up the good stuff.
Richard Rost
52 days ago
Figuring your mistakes out on your own is the BEST way to learn. :)
Alex Hedley
52 days ago
One good trick is to make a single page with all the code, if it works then start breaking it into separate ones
Add a Reply

Show All Comments

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: asp forum active server pages  PermaLink