Need help with <!--#include virtual="/left_navigation.htm"-->

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

Guest

What in the world will this do?

<!--#include virtual="/left_navigation.htm"--

irregardless of the contents of left_navigation.htm, what does the !--#include do

Thanks!
 
It is a service-side include statement used with ASP or SSI

Note: However using it with FP you will need to make sure that all hyperlinks are absolute URLs to
the pages, as FP will not adjust hyperlinks based on the location of the hyperlink based on the page
that the include is included in, which FP will do when using the FP Include Page component.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Ron,

!--#include is actually part of two different things.

1. <!-- Text between these "arrows" is a comment and will be ignored by
browsers. -->

HTML comments are useful when you want to annotate your code, but don't want
those messages displaying in the browser window. They're still visible in
the source, so don't include anything top secret. ;)

2. #include virtual="/path/to/filename.htm"

This is Active Server Pages (ASP) code to include the content of one page
into another. The correct syntax for this declaration requires it to be
placed within an HTML comment as shown in your original post:
<!--#include virtual="/left_navigation.htm"-->

Here's an intro to ASP includes that you may find helpful:
http://www.w3schools.com/asp/asp_incfiles.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top