View Full Version : How can I "include" files in an .htm file?
bellabeachr
01-07-2008, 03:35 AM
Hello,
I would like to 'include' files, such as is done in .php files using
include 'filename.inc'
or in .asp files with
<!--#include 'filename.inc'-->
in an .htm file. With apache, I could simply define the PHP 'handler'
to process .htm files.
How can I do this on a IIS based web server?
Thank you for any assistance,
Ross
Harvey Birdman
01-07-2008, 05:27 AM
Change the extension to .stm,.shtm or .shtmland the server will process server-side includes.
http://community.discountasp.net/emoticons/smilewinkgrin.gif
bruce
01-07-2008, 08:16 AM
SSI is not supported on our servers.
You can change extension to .asp.
Bruce
DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)
Harvey Birdman said...
Change the extension to .stm,.shtm or .shtmland the server will process server-side includes.
http://community.discountasp.net/emoticons/smilewinkgrin.gif
Whoa, I got dizzy for a second there...thought I was back in 1996...
;)
Just kidding. If you want to get back at me you can mock me for using image maps for navigation back in the day...
mjp
---
DiscountASP.NET
wisemx
01-07-2008, 10:01 AM
Ditto http://community.discountasp.net/emoticons/wink.gif
If you need help with ASP v3 Server directives let me know.
They're a blast to work with and do replace everything we used to do in server side HTML.
Example:
[quote]
<%
Server.Execute ("/someDASPfolder/bottomOfMyPages.asp")
%></CODE>
Harvey Birdman
01-08-2008, 05:29 AM
mjp [DASP] said...
Whoa, I got dizzy for a second there...thought I was back in 1996...
;)
Just kidding. If you want to get back at me you can mock me for using image maps for navigation back in the day...
Oh, sure. No sympathy for the elderly, I see.
http://community.discountasp.net/emoticons/lol.gif
wisemx
01-08-2008, 06:07 AM
Next Espresso's are on me bro. http://community.discountasp.net/emoticons/wink.gif
Harvey Birdman
01-08-2008, 06:20 AM
Cool - just let me go get my walker...http://community.discountasp.net/emoticons/smilewinkgrin.gif
Harvey Birdman said...
Oh, sure. No sympathy for the elderly, I see.
http://community.discountasp.net/emoticons/lol.gif
Ha - nope, it's a brutal business!
DiscountASP is interesting though, unlike a lot of hosting companies - or internet companies in general - we are not predominantly what you'd consider a young crew. A lot of us have been doing this for a long time, and there are more gray haired people around here than early 20-somethings. ;)
mjp
---
DiscountASP.NET
jasonwitty
02-20-2008, 08:04 AM
omg, use a user control or inherit from a base class. there is a reason they did away with this.
vBulletin® ©Jelsoft Enterprises Ltd.