Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Putting one page inside another - I found the Solution!

Thread Tools

Putting one page inside another - I found the Solution!

Posts: n/a
A few days back I posted a question asking if it were possible to include
one web page inside another using code. I managed ot get it and thought I'd
post how just in case someone needs it or it helps somebody. Sorry if I'm
teaching anyone to suck eggs, only trying to help.

I have two pages:

Banner.shtml - which contains the info I want to put somewhere else, say a
company address or a company logo banner

Testpage.html - which contains the place holder for the 'Banner' page and
will house the code coming from 'Banner'

Inside the 'Testpage' HTML page, I put the tag:

<!--#include file="banner.shtml" -->

where I want the file with the info to appear. Notice I have to change the
'Banner' page extension to SHTML instead of HTML. I uploaded both pages to
my web server.. bingo!

Hope that helps someone. Thanks for all the suggestions I got when
initially trying... it pointed me in a direction on the web which ultimately


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing USER CONTROL which is inside Masterpagethrough Another USER Control inside normal page. Kiran More ASP .Net Web Controls 2 11-14-2006 12:58 PM
best practice for putting one picture of another WindAndWaves HTML 48 10-28-2004 06:09 AM
Access a control inside an usercontrol from another control inside another usercontrol nail ASP .Net 0 09-15-2004 03:55 PM
Difference between putting code in constructor and putting code in static{} Saurabh Java 6 05-30-2004 02:44 PM
Passing value from one script on one page to another script on another page. Robert Cohen ASP General 3 07-15-2003 01:46 PM