include

B

bender

I've made a small control asp 'script' that I need to include in most of my
html file (and I dont wanna copy 'n past the code into all my files). How
can I do this ? Been a while since I've been messing with asp so Im a bit
rusty but wasnt there some kind of include command ? Thanks for any help :)
 
A

Aaron Bertrand - MVP

I've made a small control asp 'script' that I need to include in most of
my
html file

HTML files can't include by default. If you mean in your ASP files, then

<!--#include file='small_control_file.asp'-->
 
H

HarryD

or, if it not in the same directory:
<!--#include virtual='/path/path/small_control_file.asp'-->
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top