Re: ASP/VBscript question
by Christopher Higgs <chiggs(at)unimelb.edu.au>
|
Date: |
Fri, 01 Mar 2002 13:42:07 +1100 |
To: |
"Johnson, Mark" <JohnsonM(at)issaquah.wednet.edu>, <hwg-techniques(at)hwg.org> |
In-Reply-To: |
|
|
todo: View
Thread,
Original
|
|
G'Day Mark,
At 07:50 PM 28/02/2002 +0000, Johnson, Mark wrote:
>I'm attempting to include a file based on the contents of a variable, see my
>code below. Ive not been very successful. It appears that server side
>includes are processed and then ASP. The result is a correct statement, but
>too late for processing. Suggestions?
>
><%
>response.write "<!--#include virtual=""/documents/scouncil/" & strSchool &
>".txt""-->"
>%>
Yes - try Server.Execute instead:
<%
Server.Execute "/documents/scouncil/"
%>
The Execute method transfers execution across to a second page, executes
that in it's entirety (which in your case is straight HTML) and then
returns control to the original page.
Chris Higgs
Manager, New Learning Technology
ILFR, University of Melbourne
http://www.landfood.unimelb.edu.au/
Phone: +61 3 8344 9749 Fax: + 61 3 9348 2156
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA