« Previous Next »

Thread: .ASP includes being ignored - no errors

Last post 12-20-2007 2:17 PM by jeff@zina.com. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 12-20-2007, 12:07 PM

    .ASP includes being ignored - no errors

    Using file-based includes.  Checked "ASP" and "Server-Side Includes" in Vista's features, and I now have an "ASP" icon in IIS.  Even restarted IIS a few times, but no luck.  The include appears in the source code as a comment:

    <!--#include file="includes/header.asp"-->

     Any ideas?

     

     

  • 12-20-2007, 12:43 PM In reply to

    • thomad
    • Top 25 Contributor
    • Joined on 08-20-2002, 11:28 AM
    • Redmond
    • Posts 503

    Re: .ASP includes being ignored - no errors

    The error message you get would be interesting.

    Thomas Deml
    Program Manager
    Internet Information Services
    Microsoft Corp.
  • 12-20-2007, 12:49 PM In reply to

    Re: .ASP includes being ignored - no errors

    No errors - page just renders without the include's content.

  • 12-20-2007, 2:17 PM In reply to

    Re: .ASP includes being ignored - no errors

    colonelangus:

    <!--#include file="includes/header.asp"-->

    Is that a valid path and file name for the include?  Does it work as a virtual include?  As in:

    <!--#include virtual="includes/header.asp"-->

    I ask because it looks like a virtual path. 

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
Page 1 of 1 (4 items)
Microsoft Communities