Results 1 to 5 of 5

Thread: #include problems.

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    37

    Exclamation

    i am creating this webpage and i wanted to use an include... so i did this...

    Code:
    Response.Write("<!--#include file=" & Request.QueryString("file") & ">")
    now this is really annoying cause it is printing the include in the html (when i right click and view) but it refuses to process it. does anyone know a solution to this or another way around it?
    *urp*

  2. #2
    Addicted Member JasonGS's Avatar
    Join Date
    May 2000
    Location
    California
    Posts
    155
    I had run into those once, and I thought I had it solved with:
    Code:
    <!-- #include file="<%=Request("file")%>" -->
    ...but it didn't work either; it still wouldn't go, so I just gave up on it!

  3. #3
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    Server side Directives like Include file
    are Processed first before the actual script processing begins ...

    So...You cannot Write the SSI directive from a Server Side Scripting Language.

    You have to put something directly like this outside
    <% %>

    <!-- #include file="filename.ext" -->

    Can't Help..
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

  4. #4

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    37
    so there isn't like some super secret vb function that would do what i want to do? come on microsoft... u gotta think of these things.
    *urp*

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    37

    Thumbs up

    the solution:
    Code:
    <% Server.Execute Request.QueryString("page") %>
    mi so happi!
    *urp*

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width