includes

Discussion in 'C#' started by grobar, Jan 24, 2007.

  1. #1
    Can someone comment on the use of SSIs?

    Do these place a lot of strain on the server?

    Also, are "virtual" includes or "file" include directives more efficient?
     
    grobar, Jan 24, 2007 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Not much strain on the server at all.

    virtual might be a little more processor cycles than file, but i would definitely go with virtual - it can then be included anywhere (if you include from the webroot/slash). The processor difference is barely noticable.
     
    ccoonen, Jan 24, 2007 IP
  3. Lord Matt

    Lord Matt Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Without the use of includes the use of ASP becomes very limited. It's pritty vital for storing libraries of functions and other common elements (like page header).
     
    Lord Matt, Feb 6, 2007 IP
  4. pushkar

    pushkar Peon

    Messages:
    125
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    U r right CCOOEN it is better to work with virtua instead of file...but while making that u should knw whether ur IIS serve has support for that..
     
    pushkar, Feb 7, 2007 IP
  5. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #5
    IIS 4-6 should support Includes (SSI) Virtual by default... If i'm not mistaken.
     
    ccoonen, Feb 12, 2007 IP