Forum Moderators: phranque

Message Too Old, No Replies

Using SSI with IIS

         

Marcia

2:33 pm on Dec 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the equivalent of Server Side Includes with IIS? Is something like that available, like with Apache servers?

IanTurner

3:02 pm on Dec 31, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You need to use a #include file reference. The page needs to be .asp or another extension which is processed server side in order for it to work.

<!--#INCLUDE FILE="order_confirmation_code.asp"-->
<!--#INCLUDE FILE="menu.htm"-->

carlwright

3:20 pm on Dec 31, 2003 (gmt 0)

10+ Year Member



You could also use server.transfer or server.execute which is a little less server intensive. Only available with IIS5+ though.

bakedjake

5:30 pm on Jan 2, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Marcia, to add to Ian's comment, you'll need to enable it first if you're using .htm or .html extensions. Xoc explains how here:

Enabling SSI on IIS [webmasterworld.com]