Dynamically calling an "Include" file

N

N. Graves

Hey,
I need to have a template ASP page that can dynamically include
another file depending on that I call in the address. I have yet to
make this work.

Here is a sample of what I thought would work but didn't

Address: http://server/Template.asp?datatodisplay=welcome

<!-- #include file="<% =REQUEST("datatodisplay") %>.inc" -->

I don't want to create a select case statement because this will we
working with server al hungered files.


Anybody have any suggestion?

Thanks

NG



x-- 100 Proof News - http://www.100ProofNews.com
x-- 3,500+ Binary NewsGroups, and over 90,000 other groups
x-- Access to over 800 Gigs/Day - $8.95/Month
x-- UNLIMITED DOWNLOAD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,804
Members
47,351
Latest member
LolaD32479

Latest Threads

Top