Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: variabels and include's


Message #1 by "Walter Franssen" <walter@w...> on Fri, 20 Apr 2001 10:14:24
Hello,



I want to do the following.



I get a variables from a page en i want to use this one to include a file 

like:



<!-- #include file"<%= vVar %>" -->



But this isn't working, can someone help me.



Thx
Message #2 by "John Olival" <john@r...> on Fri, 20 Apr 2001 10:45:57 +0100
Try the following



<!-- #include file="<%= vVar %>" -->



i.e. add the "=" sign



hth



John



-----Original Message-----

From: Walter Franssen [mailto:walter@w...]

Sent: 20 April 2001 11:14

To: ASP Web HowTo

Subject: [asp_web_howto] variabels and include's





Hello,



I want to do the following.



I get a variables from a page en i want to use this one to include a

file

like:



<!-- #include file"<%=3D vVar %>" -->



But this isn't working, can someone help me.



Thx

Message #3 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Fri, 20 Apr 2001 10:50:39 +0100
Unfortunately, you can't do that.  



When you do an include, the includes are performed before any ASP code is

parsed.  Basically one the code from each include file is loaded in place of

the include statement, so that the memory contains one big long ASP script,

which is then run from the beginning.

 

<!-- #include file="c:\directory\file.txt" -->

<!-- #include virtual="directory/file.txt" -->



is all you can do



(you might want to look through the archives, this topic was discussed

extensively last week)





-----Original Message-----

From: Walter Franssen [mailto:walter@w...]

Sent: Friday, April 20, 2001 11:14 AM

To: ASP Web HowTo

Subject: [asp_web_howto] variabels and include's





Hello,



I want to do the following.



I get a variables from a page en i want to use this one to include a file 

like:



<!-- #include file"<%= vVar %>" -->



But this isn't working, can someone help me.



Thx

________________________________________________________________________

Scottish Enterprise Network

http://www.scottish-enterprise.com

Message #4 by "Morgan, Rob" <Rob.Morgan@o...> on Fri, 20 Apr 2001 06:52:53 -0400
As far as I know you can not modify the include statement like this.

Because the include statements are evaluated and executed before the page is

evaluated for script information.



-----Original Message-----

From: John Olival [mailto:john@r...]

Sent: Friday, April 20, 2001 5:46 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: variabels and include's





Try the following



<!-- #include file="<%= vVar %>" -->



i.e. add the "=" sign



hth



John



-----Original Message-----

From: Walter Franssen [mailto:walter@w...]

Sent: 20 April 2001 11:14

To: ASP Web HowTo

Subject: [asp_web_howto] variabels and include's





Hello,



I want to do the following.



I get a variables from a page en i want to use this one to include a

file 

like:



<!-- #include file"<%= vVar %>" -->



But this isn't working, can someone help me.



Thx

Message #5 by "jonas jerndin" <jonas.jerndin@o...> on Mon, 23 Apr 2001 12:16:43
MSWC.ProcessFrom could fix it for you.


  Return to Index