469,313 Members | 2,578 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,313 developers. It's quick & easy.

Variable in call to #include

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!
Aug 7 '08 #1
2 1210
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.
Aug 7 '08 #2
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
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!
Aug 7 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by mark | last post: by
3 posts views Thread by Mike | last post: by
8 posts views Thread by chellappa | last post: by
18 posts views Thread by Pedro Pinto | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.