Embedding a page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

You can do this with Included Content. You will find it under the Insert menu
in Web Compents.
 
Is it possible to embed an asp or html page withih another page?

I'm not talking about using frames, I just want to display the contents of
one page inside another.
 
Thanks Guy.

The FrontPage solution requires a webbot as:

webbot bot="Include" U-Include="mypage.asp" TAG="BODY"

Do you know the standard html tags that would be used to accomplish the same
thing?

Dave
 
Can this be used to have a single place to have the links for my site? I want
to have one place to make changes if I add a new page and it will show up on
all pages.

Thanks,
Carol
 
Yes. That's how it works. You'd just update the mypage.asp page and all
pages with it on it will update
 
David, thanks for your quick reply. I have tried using the

if I left FP insert the code it puts in
<!--webbot bot="Include" U-Include="mypage.htm" TAG="BODY" -->

I would rather use the way you suggested but it won't work <!--- #INCLUDE
FILE = "mypage.asp" ---> any suggestions? I am using FP preview to see it.
 
please ignore "I have tried using the "

Carol said:
David, thanks for your quick reply. I have tried using the

if I left FP insert the code it puts in
<!--webbot bot="Include" U-Include="mypage.htm" TAG="BODY" -->

I would rather use the way you suggested but it won't work <!--- #INCLUDE
FILE = "mypage.asp" ---> any suggestions? I am using FP preview to see it.
 
Carol:

I don't think the #include works with htm pages.

I can use the #include in an asp page to display an htm or asp page.
However, I cannot use a #include in an htm page to display another page.

Also, if I want to display an asp page in another asp page, I must remove
the <%@ Language=VBScript %> directive from the child page.

HTH
Dave
 
Your pages must .asp pages. Just change the extension of the page that you
have the include on from .htm to .asp and it will work
 
You have to view the page on a web server when using <!-- #include
file="mypage.asp"-->

It doesn't show up in "real time" like the FP include pages feature.
 
You have to change the page file names to *.shtml (note the 's' preceding
"html" for any that use <!-- #include.....

For including asp pages in another I think the line is <!-- #execute......

Also, your host has to turn on the support for server side includes.
 
They don't "have" to be *.asp. Server Side Includes will work if the host
supports them, and HTML pages must have *.shtml extensions.
 
No. <!-- #include is for ASP pages.


Andrew Murray said:
You have to change the page file names to *.shtml (note the 's' preceding
"html" for any that use <!-- #include.....

For including asp pages in another I think the line is <!-- #execute......

Also, your host has to turn on the support for server side includes.
 
True, but her pages are named .asp so I assumed she wanted ASP pages.
Unless the example she gave was incorrect.
 
OK I have my page "links.asp" showing up on my page and can view it in FP
preview but not on my local pc using http://localhost... I am guessing I
don't have FP server extensions installed? Also the page I am using the
include on has an aspx extension should I just use asp?
 
David, when you create websites how do you handle navigation for the user? Do
I have the right idea or is there a better way?
 
The original poster's question was:

"Is it possible to embed an asp or html page withih another page?"

So my answer was relevant
 
I didn't say it wasn't relevant. Of course it was. The poster said:

So when I saw the "mypage.asp" that's when I suggested the #include. If she
wants HTML the yours is the better approach.
 
Back
Top