PDA

View Full Version : non asp server side includes


jl567
09-06-2003, 01:21 AM
[?]
Hi.
I'm transfering my site to this host from a basic cpanelx unix server. I have my site set up with server side includes using the shtml format. This doesn't work here.

Please tell me the basic format for including snippets of code in txt files? Once the site is up here, I can let someone else do the asp coding. Thanks for your help!

Eric
09-06-2003, 04:32 AM
We do not support Server Side Includes in the .shtml format.

DiscountASP.NET

homeacademy
09-08-2003, 07:26 AM
To include a file in ASP:

If the file to be included is in the same directory as the page with the include statement, use

<!--#INCLUDE FILE="file_name_here"-->

else, if the file to be included is in a different directory with respect to the include statement, use

<!--#INCLUDE VIRTUAL="file_name_here"-->

Note that this only works on a .asp page, and must be put outside of the code tags (eg <% and %>) Hope this helps.