server side includes

iperez_genius

New member
Joined
May 31, 2006
Messages
2
Programming Experience
3-5
I have a simple question...i hope
i have two pages that i want to access one. lets call them page A and page B

if i come from page A i want to use the include of top_A and if i come from page B i want to use the inlcude of top_B

my current code is this
VB.NET:
<% 
dim header as string 

if Request("typ") = 2 then 
header = "<--#include virtual=(./Atop.inc)-->" 
else 
header =  "<--#include virtual=(./Btop.inc)-->"
end if 
Response.Write (header) 
%>
Ofcourse this is not really working...when i look at the source the inlcude exists but its not executing as an include...

can anyone help me please,

thanks

Ilan
P.s. its quite urgent!
 
Back
Top