How can I "include" files in an .htm file?

Discussion in 'ASP.NET / ASP.NET Core' started by bellabeachr, Jan 7, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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
     
  2. Change the extension to .stm,.shtm or .shtmland the server will process server-side includes.

    [​IMG]
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    SSI is not supported on our servers.

    You can change extension to .asp.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  4. mjp

    mjp


    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
     
  5. Ditto [​IMG]

    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:

     


  6. Oh, sure. No sympathy for the elderly, I see.


    [​IMG]
     
  7. Next Espresso's are on me bro. [​IMG]
     
  8. Cool - just let me go get my walker...[​IMG]
     
  9. mjp

    mjp

    mjp
    ---
    DiscountASP.NET
     
  10. omg, use a user control or inherit from a base class. there is a reason they did away with this.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page