Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

include file not called in asp page

Status
Not open for further replies.

makemusic

Programmer
Apr 3, 2004
43
Hi,

I'm running a site locally using IIS and am having problems displaying include files in my asp pages (<!--#include file="top.asp" -->). I can see them when I preview browser (F12) but when i try and view as a web page the browser just doesn't want to include my pages.

I've been struggling with this for a while and have tried stripping everything back down to a basic asp page to include one word in a simple table - still it doesn't display.

I may be a bit rusty here but do I need to tell IIS that I'm using includes, add a sysconfig file in my root dir, or is it something more simple than that?

Any help gratefully received!
 
the simplest thing to look into would be making sure that your include file:
does NOT have any confilitng HTML leading tags (<%,head tags,page title etc.)
and that the URL/path is correct with the respect to server root.
other than IIS not working correctly you should not have any problems...


> need more info?
:: don't click HERE ::
 
Yep, done all that. My include file contains one word. No html or anything else. The root is correct also. This is something else......I'm sure it is a problem with the set-up of my site directory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top