File #includes

Results 1 to 2 of 2

Thread: File #includes

  1. #1
    mark Guest

    Default File #includes

    Is there a better way to "include" other files, say with a bunch of functions in them, than using the &#060;!--#include file="myfile.asp"--&#062; ???<BR><BR>This command just incorporates the code as if it were just one big file!<BR><BR>I know you can do this with javascript: <BR>&#060;script language="javascript" src="myfile.js" type=text/javascript&#062;<BR>&#060;/script&#062;<BR>Or something like that. But then I have to convert my arrays and all my functions to javascript.<BR><BR>Is there an easier way???

  2. #2
    MG Guest

    Default RE: File #includes

    This is the only way. What is hard about it? Yes sometimes the page you are including can be large but it is not sent over the internet since the server does all of the processing first. You can also use the virtual command.<BR>&#060;!-- #include virtual="/includes/code.asp" --&#062;<BR>The first slash tells the it to start at the root rather than the current directory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts