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

Include Question

Status
Not open for further replies.

tonylnng

Programmer
Jan 9, 2003
21
HK
Hi folks,

Actually, I have some questions want to clarify. I have made a func.asp that contains a lot of common functions and reuse in many pages. Now, I am using
<!-- #Include file=&quot;../include/func.asp&quot;-->
and working fine.
As I know, asp is also accept
include virtual =&quot;/include/func.asp&quot;
What is the main different for above method and which one is better?

Please advice. Thanks!


Tony



 
The virtual method gives a virtual path to the include so if your include is referenced within a template use this method.

The file method gives a relative path, relative to the script (page) that is running.

This will explain more...



BDC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top