473,402 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Dynamically calling an "Include" file

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

Jul 19 '05 #1
2 2129
http://www.aspfaq.com/2042
"N. Graves" <ng*****@yahoo.com> wrote in message
news:vm********************************@4ax.com...
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

Jul 19 '05 #2
Thanks you so much for this link. I will go test it now.
On Thu, 6 Nov 2003 16:00:29 -0500, "Aaron Bertrand - MVP"
<aa***@TRASHaspfaq.com> wrote:
http://www.aspfaq.com/2042
"N. Graves" <ng*****@yahoo.com> wrote in message
news:vm********************************@4ax.com.. .
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

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

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: steve | last post by:
I am quite frustrated with php’s include, as I have spent a ton of time on it already... anyone can tell me why it was designed like this (or something I don’t get)? The path in include is...
4
by: Miguel Orrego | last post by:
Hi, Is there any way of having an include file as a string, eg: <!--#include file="<%=strURL%>"--> This doesn't seem to work, I get an error: The include file '<%=strURL%>' was not found
0
by: Wilk Teverbaugh | last post by:
I've got an include file inside each page throughout my site. Inside this include file I'm running server.execute to include other pages based on a condition (userID). The problem has two parts-...
3
by: Adam | last post by:
Hi All, Is it possible to use includes dynamically in html. Hopefully the following example will give an idea what I am rying to do. Thanks in advance Adam <script language="javascript">
4
by: michaaal | last post by:
I have two folders in my website... Folder1 (this is where my #include file is, this is where the style.css is) --Folder2 (Folder2 is inside of Folder1) Folder2 contains a file that has...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
2
by: Susan Baker | last post by:
Hi, I am (trying) to compile some code I downloaded from the internet. The sources contain references to header files - using the form : #include <pathname/file> If I change the form to...
10
by: Eric | last post by:
Hello, I have some server side includes on a Classic asp page that look something like: <!-- #include virtual="/includes/file1.asp"--> <!-- #include virtual="/includes/file2.asp" --> <!--...
1
by: PI | last post by:
Hi guys, I need some urgent help here please: I am using an include_once() command to include a file that sits a level above the file view.php. when the code is run, I have an error as follows: ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.