[thelist] [ASP] templating system woe's
Stephen Caudill
SCaudill at municode.com
Thu Aug 21 07:12:58 CDT 2003
Stephen Caudill on Wednesday, August 20, 2003 6:13 PM said:
: Help!!
: I've painted myself into a corner. I have been working on a
: templating system for classic ASP, and just discovered I made a
: serious oversight. The system works fine with plain HTML.
: However, rather than processing the server code, it merely prints
: that to screen as well. Here's the meat of it: There's a
: function which extracts everything between the body tags and
: returns it as a string... which I'm then response.writing in the
: appropriate place within the template. Dumb, dumb, dumb. I've
: been kicking myself over it all afternoon. The only thing that
: has occurred to me is to write the contents of the <body> to a
: temp file and server.execute that into place in the template, but
: that seems very inelegant and likely to add too much overhead to
: the processing (there's already a ton of FSO and RegExp...) The
: code works, so I haven't included it, but if someone thinks it
: might help, I'd be happy to provide it.
:
: Many Thanks in Advance for any help,
: Stephen Caudill
: http://www.mechavox.com/
I *really* need some help on this one. Or, if someone can
definitively tell me I'm daft, that'll work too. In a nutshell,
I have data in a string that has been extracted from a page using
FSO. That data needs to be processed by the server (some straight
html, some server code). response.writing it doesn't work. What
are my alternatives? It sounds like Output Buffering for PHP might
do what I'm looking for. Is there an ASP equivalent?
Thanks Again,
Stephen Caudill
http://www.mecahvox.com/
More information about the thelist
mailing list