473,511 Members | 14,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Include file in another included file

I have a problem

At my site I have designed a framework with tabs as below

(tabs_1.asp)
+----+ +------+ +-------+
| MC | | Cars | | Boats |
+ +-------------------------

then, into tabs_1.asp I include another page

(tabs_1_2.asp)

--------+ +--------------
| New | | Used | | Crasched |
+-----+ +------+ +----------+

Works fine so far... Here comes the problem...

The file tabs_1_2.asp has an included page (data.asp) witch doesnt
appear...

When I look at the sourcecode from the webbrowser it seems to have
been included but nothing is visible.

Is it inpossible to make several includes in the way I described?

/Stefan - Sweden
Jul 19 '05 #1
7 4014
> Is it inpossible to make several includes in the way I described?
Yes.
The problem must be with your code in data.asp.

--
Roji. P. Thomas

________________________
"Vojma" <vo***@yahoo.se> wrote in message
news:99**************************@posting.google.c om...
I have a problem

At my site I have designed a framework with tabs as below

(tabs_1.asp)
+----+ +------+ +-------+
| MC | | Cars | | Boats |
+ +-------------------------

then, into tabs_1.asp I include another page

(tabs_1_2.asp)

--------+ +--------------
| New | | Used | | Crasched |
+-----+ +------+ +----------+

Works fine so far... Here comes the problem...

The file tabs_1_2.asp has an included page (data.asp) witch doesnt
appear...

When I look at the sourcecode from the webbrowser it seems to have
been included but nothing is visible.

Is it inpossible to make several includes in the way I described?

/Stefan - Sweden

Jul 19 '05 #2
You can nest includes (one include includes another file), but I don't think
it's a great idea.

Better to create routines/classes, and put them in separate includes.
Include all the files you need (rather than having one file include another,
as you may eventually have collisions if two files include the same third
file etc).

Cheers
Ken

"Vojma" <vo***@yahoo.se> wrote in message
news:99**************************@posting.google.c om...
: I have a problem
:
: At my site I have designed a framework with tabs as below
:
: (tabs_1.asp)
: +----+ +------+ +-------+
: | MC | | Cars | | Boats |
: + +-------------------------
:
: then, into tabs_1.asp I include another page
:
: (tabs_1_2.asp)
:
: --------+ +--------------
: | New | | Used | | Crasched |
: +-----+ +------+ +----------+
:
: Works fine so far... Here comes the problem...
:
: The file tabs_1_2.asp has an included page (data.asp) witch doesnt
: appear...
:
: When I look at the sourcecode from the webbrowser it seems to have
: been included but nothing is visible.
:
: Is it inpossible to make several includes in the way I described?
:
: /Stefan - Sweden
Jul 19 '05 #3
"Vojma" wrote ..
Is it inpossible to make several includes in the way I described?


Post up your code - it will be easier to tell...

Regards

Rob
Jul 19 '05 #4
At this point I havbe changed strategy and made the second "include"
as a framed page instead - whitout success...

Here comes the code:

3_medlem.asp (tabs_1.asp in previous post)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<tr>
<td width="15" background="images/background_light_blue.jpg">&nbsp;</td>
<td colspan="15">
<%
subside = Request.Querystring("subside")
IF subside <> "" THEN
SELECT CASE subside
CASE 1
%><!--#include file="inc_medlem_1.asp"--></td><%
CASE 2
%><!--#include file="inc_medlem_2.asp"--></td><%
CASE 3
%><!--#include file="inc_medlem_3.asp"--></td><%
CASE 4
%><!--#include file="inc_medlem_4.asp"--></td><%
CASE 5
%><!--#include file="frames_guestbook.asp"--></td><%
END SELECT
ELSE
%><!--#include file="inc_medlem_1.asp"--></td><%
END IF
%>
<td width="15" background="images/background_light_blue.jpg">&nbsp;</td>
</tr>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

frames_guestbook.asp (tabs_1_2.asp in previous post)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

<frameset rows="26%,*" borders=false>
<frame name="top" src="inc_medlem_5.asp">
<frame name="bottom"
src="http://www.independentcommerce.com/Guestbook/Guestbook.asp?ID=xxxx">
</frameset>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

When viewing "frames_guestbook.asp" as it is, it shows what I want but
when viewing it as an include-file nothing shows. When looking at the
source from the web-browser, the right code is there...

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

<tr>
<td width="15" background="images/background_light_blue.jpg">&nbsp;</td>
<td colspan="15">
<frameset rows="26%,*" borders=false>
<frame name="top" src="inc_medlem_5.asp">
<frame name="bottom"
src="http://www.independentcommerce.com/Guestbook/Guestbook.asp?ID=xxxx">
</frameset></td>
<td width="15" background="images/background_light_blue.jpg">&nbsp;</td>
</tr>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

.... but NOTHING SHOWS...

WHY???

Got a tip to make it into functions but since I'm kind of newbe in ASP
I dont think I would fix it.

IF anyone wants I can mail the entire code to him/her for
errorseeking.

/Stefan - Sweden
vo***@yahoo.se (Vojma) wrote in message news:<99**************************@posting.google. com>...
I have a problem

At my site I have designed a framework with tabs as below

(tabs_1.asp)
+----+ +------+ +-------+
| MC | | Cars | | Boats |
+ +-------------------------

then, into tabs_1.asp I include another page

(tabs_1_2.asp)

--------+ +--------------
| New | | Used | | Crasched |
+-----+ +------+ +----------+

Works fine so far... Here comes the problem...

The file tabs_1_2.asp has an included page (data.asp) witch doesnt
appear...

When I look at the sourcecode from the webbrowser it seems to have
been included but nothing is visible.

Is it inpossible to make several includes in the way I described?

/Stefan - Sweden

Jul 19 '05 #5
> <tr>
<td width="15" background="images/background_light_blue.jpg">&nbsp;</td> <td colspan="15">
<frameset rows="26%,*" borders=false>


This is a basic HTML problem. Do you want frames, or do you want tables?
You can't put a frameset inside of an HTML table. Framesets have to be at
the top level...

A
Jul 19 '05 #6


My mistake... Of course...

I would rather have the page "tabeled" than framed but in a desperate
state I had to try the impossible...

Anyone???

/Stefan - Sweden

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #7
Stefan Lundberg wrote:
My mistake... Of course...

I would rather have the page "tabeled" than framed but in a desperate
state I had to try the impossible...

Anyone???

http://www.htmlhelp.com/faq/html/des...l#include-file

--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #8

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

Similar topics

6
3377
by: Tom | last post by:
I'm tying myself in knots trying to figure out variable scope with constants and include files. This is what I'm doing: A page (index.php) on my website includes a general purpose include file...
4
15033
by: Exits Funnel | last post by:
Hello, I'm slightly confused about when to use parens around #included files and when to use angle brackets. I understand (I think) that the difference is that the compiler will search in its...
3
11811
by: Brit | last post by:
Hello, I have been trying to include a js file from within another js file. I can get this to work for firefox, but not i.e. What I have is a.html ... <script language='JavaScript'...
60
8210
by: Derrick Coetzee | last post by:
It seems like, in every C source file I've ever seen, there has been a very definite include order, as follows: - include system headers - include application headers - include the header...
44
3312
by: Neil Cerutti | last post by:
In Rob Pike's style guide he urges the following: Simple rule: include files should never include include files. If instead they state (in comments or implicitly) what files they need...
5
2495
by: David Mathog | last post by:
One thing that can make porting C code from one platform to another miserable is #include. In particular, the need to either place the path to an included file within the #include statement or to...
11
2247
by: MBS | last post by:
I am playing around with some PHP code. I want to put in an include() function so I can include existing HTML code and output it to the browser. Lo and behold PHP does not support relative paths...
14
2321
by: Julesh | last post by:
Hello, I am new to ASP and am trying to make some changes to some ASP 3.0 code I have inherited. I have a number of ASP pages with VBS as the base language, on each of these pages I have...
111
4551
by: Nate | last post by:
Hello, I am looking for a method to automatically declare variables in C. I'm not sure if there is a good way to do this, but I had something like this in mind... int i; for(i = 1; i < 4;...
0
7237
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
7349
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
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7506
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
5659
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,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.