How To Dynamically Include Files in Active Server Pages (192144)
The information in this article applies to:
- Microsoft Active Server Pages
- Microsoft Visual InterDev 1.0, when used with:
- Microsoft Visual InterDev 6.0, when used with:
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Server 5.0
This article was previously published under Q192144 SUMMARY
Since Active Server Pages (ASP) pages are compiled and executed before
being sent to the client (as static HTML), trying to use a variable in
place of a file name in a Server Side Include (<!-- #include PathType =
FileName -->) fails. To include a file in your ASP page, you could include
code similar to the following that reads in a file and displays it.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
172024
INFO: Server Side Include Directives Not Processed by ASP
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbCodeSnippet kbhowto kbScript KB192144 |
---|
|