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

R

Ron

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!
 
T

Thomas A. Rowe

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.
==============================================
 
J

Jack Brewster

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
 
Top