Benefits of INC:
1. LongProgramSegmentation
2. The original file method can still be used in Inc, especially viewdata can be used to retrieve data in MVC. We recommend that you split the file when some functions are completed to streamline the main 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 inc file can make our program, 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" -->