Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 29-07-2002, 10:20 AM
alvinhan's Avatar
Novice Webmaster
 
Join Date: Dec 2001
Location: Labuan
Posts: 84
Rep Power: 86
alvinhan is on a distinguished road
Send a message via MSN to alvinhan
ASP #include file

I have questions regarding #include file in ASP.
1) Can I add more than one file in one page? What’s the proper way of doing it?
2) How to add a file which is placed in another directory? Eg,: have 2 directories; directory A and directory B on the same level, how to include file which is in directory A for my ASP page in directory B?
3) How about if directory B is inside directory A, my ASP page in directory B and I wish to include file in directory A?
__________________
aLvinHan of ViNSiGN Web Design in Labuan and PJ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 29-07-2002, 10:36 AM
kpyew's Avatar
Senior Webmaster
 
Join Date: Jul 2001
Location: KL, Malaysia
Posts: 277
Rep Power: 95
kpyew is on a distinguished road
Send a message via ICQ to kpyew
1) simply put #include where necessary. example:
<!-- #include file=content1.asp -->
<!-- #include file=content2.asp -->

2) <!-- #include file=../directory_a/content1.asp -->

3) <!-- #include file=../content1.asp -->
__________________
webmaster @ http://kongtechnology.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-08-2002, 12:00 AM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
Or you can use:

<!-- #include virtual=/file.asp -->

this will include a file from the root web. Or you can use:

<!-- #include virtual=/dir/file.asp -->

to include a file in a directory, you can also use the code above where 'dir' is a directory in the root web and file.asp is a file in the direcotry dir.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
include file problem Rizalnet Website Programming 4 22-08-2005 08:20 AM
include RSS in html alvinhan Website Design 8 07-05-2005 08:04 PM
JSP: include silverX Website Programming 0 08-11-2004 12:51 PM
cammane nak berinteract ngan cgi or ngan any file eg. text file nos Website Design 7 12-08-2002 11:30 AM
include/require- redecare function joyce Website Programming 4 16-06-2002 01:43 AM


All times are GMT +8. The time now is 11:07 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61