Forum Moderators: open

Message Too Old, No Replies

Server Side Include Problems

         

traeanthony

5:45 am on Sep 30, 2005 (gmt 0)

10+ Year Member



I've have two asp pages, one that I would like to add into the other. Right now I'm currently useing iframes, but I would like to start using server side includes. The problem is when I use this code:
<!--#include file="page.asp"-->
and I open up the main page, I get an "http 500.100 error, the include file could not be found" even though it's in the same directory. I've even tried
<!--#include virtual="page.asp"-->
and that still doesn't work, any clue what's going on?

zerocode

7:26 am on Sep 30, 2005 (gmt 0)

10+ Year Member



create a directory name "asps"
like this one
C:\Inetpub\wwwroot\asps
save your files in this folder
code in firstfile.asp

<!--#include file="page.asp"-->

code for page.asp

welcome to nagaland

open your IIS

from administrative tool
right click on asps
properties
give a name for your application
default would be asps

done
access "firstfile.asp" as

"http://localhost/asps/firstfile.asp"

and then solve my problem bro if you can

traeanthony

4:03 am on Oct 1, 2005 (gmt 0)

10+ Year Member



AWSOME! IT WORKED! Thank you so much, now for your problem, I'll try to do my best to solve it.