I would like to have one .asp file called HomePage.asp containing the following 2 lines: <% myFile = "HomePage1.asp" %> <!--#include file="MyOuterShell.asp"--> and MyOuterShell.asp will contain the working equivalent of: <!--#include file="<%=myFile%>"--> I am attempting to have an outer ASP shell that will be the same for all pages of my site and construct include files for additional pages. When I test and click view source, I can see the #Include directive. It is not being processed before the page is shown. Can anyone tell me what I might be doing incorrectly.
That line is probably what is causing the problem. The include file cannot contain an asp directive because ASP cannot parse it. You will have to include the proper file name in the statement i.e. replace <%=myFile%> with the name of the actual file.