Syntax for Include statement

Results 1 to 2 of 2

Thread: Syntax for Include statement

  1. #1
    Join Date
    Dec 1969

    Default Syntax for Include statement

    Just purchased Sam&#039;s Teach Yourself Active Server Pages 3.0. Page 518 states that you should copy to the root of your web directory and insert<BR>&#060;!--#include virtual="/"--&#062;<BR>in your page(s).<BR><BR>This book pointed me to this website where I&#039;ve notice example code shows:<BR>&#060;!--#include file = ""--&#062;<BR><BR>The book continues to use the same syntax as mentioned above yet, when I try using that, I get an error message indicating / could not be found. If I remove the "/" and change "virtual" to "file", everything works. I&#039;ve copied everywhere except on my forehead, only to get the same results each time.<BR><BR>Can anyone explain?

  2. #2
    Join Date
    Dec 1969

    Default RE: Syntax for Include statement<BR><BR>give that a good read, pay close attention to this section<BR><BR>"To include a file, the syntax is like an HTML comment. You need the &#060;!--, followed by a #include. You can then use one or two keywords, either file or virtual"

Posting Permissions

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