[Q] include statement

Results 1 to 2 of 2

Thread: [Q] include statement

  1. #1
    Ed Lee Guest

    Default [Q] include statement

    hi,<BR><BR>i am trying to include some random asp file within one asp.<BR><BR>i know that below code will insert test.asp into current asp.<BR>&#060;!--#include file="test.asp" --&#062;<BR><BR>but i want to know how to change "test.asp" into some variable.<BR><BR>for example, <BR><BR>myfile = session("randomizedpage")<BR>&#060;!--#include file=myfile --&#062;<BR><BR>but obviously above code doesnt work. it just looks for "myfile".<BR><BR>can anybody help me solving this problem?? please??<BR><BR>thanks much in advance!<BR>

  2. #2
    squeaky Guest

    Default RE: [Q] include statement

    I don&#039;t think you can do it that way.<BR><BR>What do you mean you want to include some random asp? You don&#039;t know which one you want to include?<BR><BR>You could create another include file that includes a whole bunch of include statements, and when you include that one all of them will be included. Within the subincludes could be code that will apply to the page at hand.<BR><BR>

Posting Permissions

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