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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Contents of include file not displaying

Status
Not open for further replies.

booboo0912

Programmer
Jul 31, 2002
75
US
Hello!
I came across the thread - thread333-1225701 - which sounded like the issue my customer is having. I have an include <!-- #Include file="includes/div_tags.htm" --> in my .asp page, and when my customer views the web page on his computer (not through the internet but local IIS) he does not see the contents in the include file which is the menu for the website. What's weird is when I view the website I can see the menu. Is there some configuration missing from his computer? Could this be b/c of the .htm extension? Any help is appreciated!! Thanks!!
 

Maybe this is because the change from a website to a virtual directory

Try this:

<!-- #Include virtual="/[virtualdirectory]/includes/div_tags.htm" -->
 
What is the file extensionof the main page (the one calling the include), only .asp or .shtml allow for includes
 
Thank you both for your replies!

cmartin75,
Why would I change my include to a virtual include? I'm not sure I understand.

tyutghf,
The extension of the main page is .asp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top