ASP question

D

Denis

Hi

I need info about #include directive in classic ASP

I've 2 library of functions

library1.asp and library2.asp
library1.asp uses functions contained in library2.asp

These library have to be used all around my site so, can I include
library2.asp in library1.asp and then include library1.asp into my webpages?

Library1.asp
<%
<!--#include virtual="/Include/library2.asp" -->
....
%>

Default.asp
<%
<!--#include virtual="/Include/library1.asp" -->
call a function in library1
....
%>

And what happen if I include library2.asp again in default.asp?
Default.asp
<%
<!--#include virtual="/Include/library1.asp" -->
<!--#include virtual="/Include/library2asp" -->
call a function in library1
....
%>

Thanks
 
K

Karl Seguin

Denis:
Seems like these are pretty easy things for you to find out on your own.
Writing a little test probably would have taken less time than posting
here...

Anyways, to answer your questions, yes you can include one in another...and
yes you can include it twice, but that'll likely cause problem as it'll
actually include the code twice in the page...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
 

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

Top