Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Variable in call to #include

Question posted by: Ron Hinds (Guest) on August 7th, 2008 05:55 PM
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!


Bob Barrows [MVP]'s Avatar
Bob Barrows [MVP]
Guest
n/a Posts
August 7th, 2008
06:15 PM
#2

Re: Variable in call to #include
Ron Hinds wrote:
Quote:
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.



Ron Hinds's Avatar
Ron Hinds
Guest
n/a Posts
August 7th, 2008
07:55 PM
#3

Re: Variable in call to #include
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcomwrote in message
news:%23xAcriL%23IHA.5192@TK2MSFTNGP04.phx.gbl...
Quote:
Ron Hinds wrote:
Quote:
>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!



 
Not the answer you were looking for? Post your question . . .
190,182 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors