473,408 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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 1264
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mark | last post by:
How does one call a variable defined in a class defined in file1.cpp from another file file2.cpp. Or can one call a class from a different file ? (Besides the standard way to define the variable...
1
by: nin234 | last post by:
I tried searching the newgroups for an answer to this question. I found many related topics, but didn't find the exact answer I am looking for. I am implementing a class to aid in the logging...
3
by: Mike | last post by:
I'm new to PHP - moving over from ASP. I have a number of include files, the first of which sets the value of a variable $loginmsg. I use that variable in a subsequent include file, but get a...
8
by: chellappa | last post by:
hi Everybody ! decalaring variable in a.h and using that vaaariable in a1.c and inalization is in main.c it is possible .........pleaase correct that error is it Possible? i am trying it...
18
by: Pedro Pinto | last post by:
Hi there once more........ Instead of showing all the code my problem is simple. I've tried to create this function: char temp(char *string){ alterString(string); return string;
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.