[thelist] ASP SSI Question

Webmaster webmaster at archetype-it.com
Thu Feb 28 09:50:00 CST 2002


At 10:22 28/02/2002 -0500, Bob wrote:
>A much better way to have conditional includes is to use the Server.Execute
>and Server.Transfer functions of IIS5 (if you have it).

In fact, you *can't* do conditional or variable includes with SSI in ASP
(it differs from PHP in this respect) -- because ASP parses the includes
before evaluating any code. If not using IIS5, you could write a function
to do it -- otherwise, Marty's suggestion of using templates is a good one.

Regards

Veronica Yuill                 email: veronicay at archetype-it.com
Archetype Information Technology Ltd  http://www.archetype-it.com/english/
------------------------------------------------------------------
Dynamic websites for fast-moving businesses




More information about the thelist mailing list