dynamicaly building includes

M

monki

i want to generate the an include file such as

<!--#include file="nav/nav_1.asp"-->

but by calling the number from strNav

<!--#include file="nav/nav_<%=strNav%>.asp"-->

i have several combinations of quotes etc but cant get it to work!

is there a way?

Thanks in advance

J
 
R

Roy Danon

Hi,
Only the last solution should be used.

SSI is proccesed before ASP, this way even if the If statement includes one
of the include files, the other one is also being proccesed.

And FSO wastes many resources and cannot be procced as an ASP page easily.


So what you have left is the server.execute, and server.transfer(which the
article doesn't mention, probably because the page you transfer to doesn't
take you back to the original one and stops proccesing at the end of the
"transfered to" page.)


Roy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top