ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I unclude external files in ASP?

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming
View previous topic :: View next topic  
Author Message
paul



Joined: 11 Oct 2004
Posts: 128

PostPosted: Thu Oct 21, 2004 10:36 am    Post subject: How do I unclude external files in ASP? Reply with quote

Hi,

I want to have a common separate html file header and I want to include it on every ASP page within my application. How do I include files in ASP?
_________________
World Countries | Survival Skills
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Thu Oct 21, 2004 1:57 pm    Post subject: Reply with quote

Use the #include directive to include files in ASP. I've listed 2 ways of including file in ASP below:

Code:

<!--#include virtual="/includes/your_header.htm"-->



The virtual keyword indicates that the file path begins with a virtual directory (/includes is a virtual folder in this case)

Code:

<!--#include file ="includes\your_header.htm"-->



The file keyword indicates that you are using relative file path (includes is a standard folder in this case).


Cheers
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> ASP programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial