|
-
Mar 20th, 2001, 11:54 PM
#1
Thread Starter
Member
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?
-
Mar 21st, 2001, 02:41 AM
#2
Addicted Member
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!
-
Mar 21st, 2001, 02:50 PM
#3
Addicted Member
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..
-
Mar 21st, 2001, 03:03 PM
#4
Thread Starter
Member
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.
-
Mar 21st, 2001, 03:27 PM
#5
Thread Starter
Member
the solution:
Code:
<% Server.Execute Request.QueryString("page") %>
mi so happi!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|