asp tutorials, asp.net tutorials, sample code, and Microsoft news from 15Seconds
Data Access  |   Troubleshooting  |   Security  |   Performance  |   ADSI  |   Upload  |   Email  |   Control Building  |   Component Building  |   Forms  |   XML  |   Web Services  |   ASP.NET  |   .NET Features  |   .NET 2.0  |   App Development  |   App Architecture  |   IIS  |   Wireless
 
Pioneering Active Server
 Power Search








Active News
15 Seconds Weekly Newsletter
• Complete Coverage
• Site Updates
• Upcoming Features

More Free Newsletters
Reference
News
Articles
Code Samples
Components
Tools
FAQ
Feedback
Books
Links
DL Archives
Community
Messageboard
List Servers
Mailing List
WebHosts
Consultants
Tech Jobs
15 Seconds
Home
Site Map
Press
Legal
Privacy Policy
internet.commerce














internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

HardwareCentral
Compare products, prices, and stores at Hardware Central!

PreviousNext

 

email this FAQ to a colleague

Q: Does the HTTP server support server side includes?

A: IIS supports Server Side Includes. there are some restrictions and it's somewhat picky about syntax.

The kind of SSI which are supported are of the #include type, i.e.:



<!--#include tag="value"-->.
<!--#include file="filename"-->
<!--#include file="/ssi/foo.htm"-->
<!--#include file="/VirtualRoot/MorePath/file.ext"-->


Processing-related things like #echo and #exec aren't supported yet.
  • hint: don't add any additional spaces on the line.
  • hint: use lowercase for "include file".
  • hint: some people claim that the path is tricky, and have had better luck listing it starting from its virtual root from where the include file resides.
  • hint: the file being included that is doing the including (not the file to be included) must be name with a ".stm" extension (not sure if ".shtml" works).
And of course note that SSIs reduce performance. The server is not able to call the high-performance TransmitFile() API, since the server processes the file before sending, thus not using the file contents directly, where TransmitFile() helps.

The help file that comes with IIS has some instructions, look up "Include" in the index.

- Lee

Books
Professional Active Server Pages
Gross, Homer, Enfield, Gross, Harrison, Francis, Jakab, Gill, Hartwell
Building a Windows NT4 Internet Server
Robert Oliver (Editor), Plazas. Christian, John Desborough, Gulbransen

Related Topics
IIS 1.0
IIS 2.0

Knowledge Base Articles
IIS Execution File Text Can Be Viewed in Client
Q164059 - 1997.06.23
IIS Services Stop with Large Client Requests
Q143484 - 1997.07.23
INF: IIS Queries to SQL Server Generate Error 1326
Q152828 - 1997.09.07
PRB: Nested Virtual Roots Can Lose Session State
Q173307 - 1997.09.30


Support the Active Server Industry



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers