var in include

Results 1 to 2 of 2

Thread: var in include

  1. #1
    Join Date
    Dec 1969

    Default var in include

    I have a querystring variable..<BR>I want to use it in an include statement<BR>but it doesn&#039t work... see code below<BR><BR>page=Request.QueryString("page")<BR>< BR>&#060;!-- #include file="&#060;%=page%&#062;.asp" --&#062;<BR>Thanks in advance...

  2. #2
    Join Date
    Dec 1969

    Default SCOTT: Add to FAQ, PLEASE

    Include happens *BEFORE* ASP ever gets control, so *all* includes *always* happen and you can *never* control or change the name of an include file from ASP.<BR><BR>I am almost sure this is one of the most FA&#039d of all the FAQs,<BR>but it&#039s not in the FAQ on this site, unfortunately.<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