David, I've never tried this yet, but in theory it should work.
create a file object, then read the file into a string through the textstream object.
Next execute the contents of the string. I think this is going to have quite a bit of
overhead though. You will probably also have to use response.write in the included
file for outputing html.
------Original Message------
From: "David Huyck" <[EMAIL PROTECTED]>
To: Fusebox <[EMAIL PROTECTED]>
Sent: November 11, 2000 8:45:33 PM GMT
Subject: Re: Fused ASP
I, too, am moving into an ASP-shop job. I have done very little sniffing,
but one of the major snafus in ASP (VBScript, really) is the lack of an
"include" function that doesn't run before compile time. That is, to
include a file in ASP, you have to use SSI (<!---#include
file="filename.asp" -->), which occurs before the ASP engine gets to look at
the page. That means that your conditionals will not decide whether or not
to include the file, they will decide whether or not to process the code
that has already been included. That's poopy. Major overhead increase.
If anyone knows of a way to work around that issue, I might consider not
trying to get my new employer to switch to CF or PHP or JSP. Otherwise, I
am planning on being a rebel without a clue...
David Huyck
[EMAIL PROTECTED]
> ASP sucks so hard it's not even funny, but I have to use it on my current
> project (they threw buckets of money at me). I know fusebox.org says info
on
> doing asp fusebox is coming, but I can't wait. Has anyone done much of it?
> Any hints you'd like to share so I don't run into deadends? Thanks!
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.