aimlion11yahoo
Instructor
I was using the following method to insert an include file that contained some ASP code. Everything was working fine. The line <%=request.servervariables("SCRIPT_NAME")%> returned the name of the page
I replace the #include statement with the following custom control:
When using the custom control above, the ASP code does not execute.
<%=request.servervariables("SCRIPT_NAME")%> returns "<%=request.servervariables("SCRIPT_NAME")%>", not the name of the page.
Is there something I can do to fix this problem, or should I stick with the #include statement?
Thanks,
Code:
<body MS_POSITIONING="FlowLayout">
<!-- #include virtual="includes/i_PageLayout_Top.ASP" -->
I replace the #include statement with the following custom control:
Code:
<body MS_POSITIONING="FlowLayout">
<cc1:CBDInclude id="CBDInclude1" FileName='C:\Inetpub\[URL unfurl="true"]wwwroot\Configurator\Includes\i_PageLayout_Top.ASP'[/URL]
runat="server"></cc1:CBDInclude>
<%=request.servervariables("SCRIPT_NAME")%> returns "<%=request.servervariables("SCRIPT_NAME")%>", not the name of the page.
Is there something I can do to fix this problem, or should I stick with the #include statement?
Thanks,