RSS Forums RSS
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1933 | Replies: 1
Reply
Join Date: Jun 2005
Posts: 8
Reputation: Wiz-kid is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Wiz-kid Wiz-kid is offline Offline
Newbie Poster

Help How do I use #include

  #1  
Jun 10th, 2005
Firstly i would like to know WHAT a #include filenameas.asp file is, and HOW can I use it on my site(code). Please clearify this cos I'm confused? :rolleyes:
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2005
Location: Bournemouth, UK
Posts: 19
Reputation: Lacuna is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Lacuna's Avatar
Lacuna Lacuna is offline Offline
Newbie Poster

Re: How do I use #include

  #2  
Jun 10th, 2005
the code can be either of the following:

<!-- #INCLUDE FILE="filename.asp" -->

or

<!-- #INCLUDE VIRTUAL="filename.asp" -->

First thing to know is you have to have the page these tags are on saved as an .asp page as well.

Use #include virtual to reference files in a higher folder and #include file for those in the current folder or below. Reason being, is virtual goes from the root while file goes from your file's position.

An include file save a LOT of time. If you, for example, have the same left hand side on every page then you can use an include statement and make the left hand side only once. This way, when you want to make a change to the left hand side you change one file and it will effect any pages with the include statement.

Because asp is processed on the server, when you view source on your page it will look like you've put the included file information in your page. So, wherever you stick your include file, it is like putting the coding there instead.

Hope this makes it clear for you!!

~ Lacuna
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:06 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC