include ...

  • Thread starter Thread starter Gabriel
  • Start date Start date
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,
 
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...
 
Back
Top