Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include in included file ?

Status
Not open for further replies.

LDL30

IS-IT--Management
Mar 31, 2003
14
DE
Hello,

I want to include one asp page in other but in that page which I want to include I already included third page. Can something like that work ? Or better question is how something like that can work because I have problems with it ?

Thanks
Oliver

 
you should be able to just have this, I think;

file 1:
<!-- #include file=&quot;file2.asp&quot; -->
blah blah blah code code code

file 2:
<!-- #include file=&quot;file3.asp&quot; -->
blah blah blah code code code

file 3:
blah blah blah code code code

.. should be ok...

...

I think...

--------------------------------------------------
- better than toast.
Penguins - better than --------------------------------------------------
 
I tried something similar and it doesn't work :(
 
I inherited a site which is comprised of lots of multi-level includes...it's a bear to troubleshoot and I would not recommend designing a site this way unless you have a very good memory...just make sure you use &quot;include file&quot; vs &quot;include virtual&quot; correctly...
 
Contrary to popular belief there is no such thing as an &quot;asp page&quot;! So of course you cannot include one asp page in another asp page.

However there are asp scripts that build HTML pages; and there are asp scripts that build parts of pages.

If you are trying to include a file that builds a complete HTML page <html> ... </html> in another file that also builds a complete HTML page
<html> ...<html> ... </html> ... </html>,
well you might have problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top