locked
WHS Web Server HTML Include RRS feed

  • Question

  • Does the HTML Server Side Include work? If so I can not get the following to work?


    <!--#include virtual="include.html" -->

    The file is located in same folder as the 'calling' html. Help Please!

    Jim Smith

    Sunday, November 7, 2010 10:50 PM

Answers

  • Thanks Ken.

    That helps some but it still does not work.

    I have look at the IIS info and look on my server but could not figure out to make change to allow Server Side Includes.

    Jim Smith

    • Proposed as answer by gene5746 Monday, February 21, 2011 1:28 AM
    • Unproposed as answer by gene5746 Monday, February 21, 2011 1:31 AM
    • Marked as answer by jas1935 Monday, February 21, 2011 1:36 AM
    Monday, November 8, 2010 2:04 PM

All replies

  • Your syntax is wrong; you need a space between the dash and the pound symbol. And you can't (by default) use server-side includes in .html files.

    See IIS Server-Side Include Directives for more information.


    I'm not on the WHS team, I just post a lot. :)
    Monday, November 8, 2010 2:29 AM
    Moderator
  • Thanks Ken.

    That helps some but it still does not work.

    I have look at the IIS info and look on my server but could not figure out to make change to allow Server Side Includes.

    Jim Smith

    • Proposed as answer by gene5746 Monday, February 21, 2011 1:28 AM
    • Unproposed as answer by gene5746 Monday, February 21, 2011 1:31 AM
    • Marked as answer by jas1935 Monday, February 21, 2011 1:36 AM
    Monday, November 8, 2010 2:04 PM
  • Open Server Manager and drill down to Roles, Web Server (IIS), Role Services and click "Add Role Services".  You'll be able to drill down to add any of the services you need to add.

     

    Gene

    Monday, February 21, 2011 1:34 AM