View Single Post
  #6 (permalink)  
Old Jul 30th, 2006, 18:29
daninmanchester daninmanchester is offline
Junior Member
Join Date: Jul 2006
Location: Manchester
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Can I use #include within an If Then statement?

You have two options to dynamically "include content".
1) use the execute method wich will run the ASP page in much the same way as the include method.....
if x = y then
execute "myfile.asp"
else
execute "myfile2.asp"
end if

or 2) the less pleasant way is to use FSO to read the contents of the file then write it out to the client. this is no good if the file contains serverside code.
Reply With Quote