Newbie Question, Filename in Dbase field

T

TNG

Hi,

Is it possible to put filenames in a access dbase field
and to use the content of this field in an include command ?

something like

<p><!--#include file='<%rs("file")%>'--></p>

But this doesnt work

Many Thanks
 
C

Christopher Brandsdal

You can not use a recordset call in the #include.
I dont know if there is any good way around..
 
T

TNG

Doesn't seems to work.
When I use: <!--#include file="<%rs("filename")%>"-->
I get

Active Server Pages error 'ASP 0126'
Include file not found
/db_test.asp, line 29
The include file '<%rs(' was not found.

Regards
 
B

Bullschmidt

Apparently Server.Execute (ASP 3.0) can be used for dynamic includes.

Best regards,
J. Paul Schmidt, Classic ASP Web Designer
http://www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Demo, ASP Bar Chart Tool...
 

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
474,194
Messages
2,571,028
Members
47,626
Latest member
StevieLaut

Latest Threads

Top