server side includes inside vbscript?
I have a Select Case statement inside of which I want to put serverside includes which are response writes.
I'm wondering what format to save the include code as (will simple .txt do?) and what is the syntax for an include inside the delimeters?
If it were outside the delimeters (
<?php
?>
I would write it:
I know this must be really simple, but I can't find an answer.
Thanks!
Peter J. Boettcher posted this at 20:58 — 8th April 2002.
They have: 812 posts
Joined: Feb 2000
Unfortunately since include files are processed before ASP code you can't do this. What you can do if you're running IIS5 is use either Server.Execute or Server.Transfer although they have limited functionality.
For a quick fix just change your Select statement to an If statement, check out this link for more info: http://www.aspfaq.com/show.asp?id=2042
PJ | Are we there yet?
pjboettcher.com
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.