include ...

G

Gabriel

Hello,

In the ASPX code I use this (I know is not the best way) :

<!--#include file ="file.inc"-->

I'd like include an another file (file1.inc, file2.inc, ....) depending of a
parameter from URL.

I tried this :
<!--#include file =" <%Response.Write(getPage())%>"-->

But I receive an error, could you tell me how can I do ?

Thanks,
 
J

Jon Paal

you can't embed asp inside static include ...

you need to use dynamic include statement

if ... then
server.execute("...")
elseif ... then
server.execute("...")
end if

or use controls...
 

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,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top