[thelist] dynamic includes in ASP?
Jeremy Weiss
jweiss03 at comcast.net
Mon Dec 30 23:27:01 CST 2002
Okay, I've been popping cold pills and I've got a drug induced idea. I'm
working on a site that's going to have a decent number of pages in it. And
I'm thinking, instead of designing all the pages and have to do massive find
and replace searches every time I need to change the layout, why not have a
page called main.asp and all the links point to something like
main.asp?pageurl="filenamehere.asp"
and have the VBScript pull the value for pageurl and use it in the include
further down the page like...
<!--#include file="<%=pageurl%>"-->
My thought was that each of these files could be just the content of the
page and I'd be able to change the look of the entire site by modify just
main.asp.
Great idea I thought... unfortunately it's not working. I keep getting an
error that says
The include file '<%=pageurl%>' was not found.
Anyone know of a way around this? Just wondering.... if the answer is
obvious blame it on the medication.
TIA,
Jeremy
PreferredLendingNetwork.com
More information about the thelist
mailing list