Does ASP have a require function, similar to the require function in PHP?
Posted on 2003-03-07
In PHP, you can use the require function. It is similar to the include directive in C or the require directive in Perl. In PHP, when the require function is processed, it is replaced with the file that it points to. This is a good way to separate HTML from PHP and to reuse code. For example:
// here is where the body of this particular page would be built...
// could be just print statements of html, function calls, etc...
The require functions above open the html files they point to. The contents of those files, in this case, pure html, will become part of the resulting page...
I want to accomplish something similar in ASP. Maybe ASP has a similar function and I'm just missing it, as i am still somewhat new to ASP...
// body of page goes here....
Thanks in advance!