Inc file
[What's inc file]
The. inc file, as its name implies, means include file.
In fact, the file suffix does not matter for file inclusion.
You can include an ASP file or a TXT file.
Generally, we use Inc as the suffix because it can
The role of this file.
[Why inc file]
The. inc file is similar to. H. HPP in C/C ++.
Header file. Using the inc file can make ourProgram, Add
Readability makes development and maintenance easier.
[How to inc file]
# Include
ASP file inclusion is written as follows:
In HTML, write:
<! -- # Include file = "FILENAME" -->
<! -- # Include virtual = "FILENAME" -->
The difference between file and virtual is that file uses relative paths.
Virtual is the complete virtual path of the virtual directory in your web site.
For example:
<! -- # Include file = "INC/Char. Inc" -->
It indicates the char. inc under the INC directory under the virtual directory path where the current file is located.
You may need to write the code as virtual.
<! -- # Include virtual = "/myweb/INC/Char. Inc" -->