Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Variable in call to #include

Reply
Thread Tools

Variable in call to #include

 
 
Ron Hinds
Guest
Posts: n/a
 
      08-07-2008
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!


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      08-07-2008
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.


 
Reply With Quote
 
 
 
 
Ron Hinds
Guest
Posts: n/a
 
      08-07-2008
"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!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Variable variable name" or "variable lvalue" mfglinux Python 11 09-12-2007 03:08 AM
Call Manager limit call duration nazgulero Cisco 0 10-25-2005 06:58 AM
RMI: remote call or local call Buu Nguyen Java 5 09-17-2004 08:05 AM
help: need to call call web service from java bill sandner Java 1 07-01-2004 02:57 PM
How do I scope a variable if the variable name contains a variable? David Filmer Perl Misc 19 05-21-2004 03:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57