Solved

Include files

Posted on 1998-09-30
8
144 Views
Last Modified: 2013-11-18
In ASP I type <!-- #Include Virtual="directory/filename.inc" -->

What should I write to include a file (with HTML code) on a page?
0
Comment
Question by:aspdev
  • 4
  • 4
8 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1838224
<!-- #Include file="filename.inc" -->

You can use the Server Side includes in ASP but also in an HTML file. But you have to rename the file to .shtm or .shtml. Then IIS can do the SSI.
0
 

Author Comment

by:aspdev
ID: 1838225
I talk to another person and he said it wasn't possible if it was a regular .html file. Is that true? There is no other workaround except renaming it to shtml?
0
 
LVL 28

Expert Comment

by:sybe
ID: 1838226
There is a workaround: tell the server that it should treat ALL .htm and .html files as SSI pages. Depends on your server how to do that. What server do you use IIS3 or IIS4 ?
0
 

Author Comment

by:aspdev
ID: 1838227
IIS4 so I guess it should work then...
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 28

Expert Comment

by:sybe
ID: 1838228
Go to MMC, rightclick the website, choose properties.

Then:
- home directory
- configuration
- App mappings

There you see a list of extensions and what the server will do with it. You'll see that .shtml and .shtm will be run over a dll called ssinc.dll.
If you run the .htm and .html files over the same dll, you can use ssi in files with extension .htm and .html

That's all
0
 

Author Comment

by:aspdev
ID: 1838229
Thanx. Btw, what does the "Virtual" stand for?
0
 
LVL 28

Expert Comment

by:sybe
ID: 1838230
"virtual" is when you use a path to a virtual directory (as defined in the server). "file" is used when pointing to a physical path.

0
 

Author Comment

by:aspdev
ID: 1838231
Ok thanx again. Now go answer my other questions =]
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now