Variable in call to #include

Discussion in 'ASP General' started by Ron Hinds, Aug 7, 2008.

  1. Ron Hinds

    Ron Hinds Guest

    I want to know if this statement would be legal (and produce the desired
    result, i.e., pass a variable to the include file):

    <!-- #include file="/scripts/include.asp?id=<%=ID%>" -->

    Thanks!
     
    Ron Hinds, Aug 7, 2008
    #1
    1. Advertising

  2. Ron Hinds wrote:
    > I want to know if this statement would be legal (and produce the
    > desired result, i.e., pass a variable to the include file):
    >
    > <!-- #include file="/scripts/include.asp?id=<%=ID%>" -->
    >
    > Thanks


    No. See:
    http://www.aspfaq.com/show.asp?id=2042

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.
     
    Bob Barrows [MVP], Aug 7, 2008
    #2
    1. Advertising

  3. Ron Hinds

    Ron Hinds Guest

    "Bob Barrows [MVP]" <> wrote in message
    news:%23xAcriL%...
    > Ron Hinds wrote:
    >> I want to know if this statement would be legal (and produce the
    >> desired result, i.e., pass a variable to the include file):
    >>
    >> <!-- #include file="/scripts/include.asp?id=<%=ID%>" -->
    >>
    >> Thanks

    >
    > No. See:
    > http://www.aspfaq.com/show.asp?id=2042
    >


    Excellent, thank you!
     
    Ron Hinds, Aug 7, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Danny Anderson
    Replies:
    5
    Views:
    529
    Victor Bazarov
    Aug 15, 2003
  2. Rolf Magnus
    Replies:
    2
    Views:
    629
    Karl Heinz Buchegger
    Nov 28, 2003
  3. Elie Nader
    Replies:
    1
    Views:
    666
  4. Aguilar, James
    Replies:
    2
    Views:
    725
    Aguilar, James
    Jul 16, 2004
  5. Andreas Bogenberger
    Replies:
    3
    Views:
    1,003
    Andreas Bogenberger
    Feb 22, 2008
Loading...

Share This Page