Asp classic 经典ASP:页面参考

Asp classic 经典ASP:页面参考,asp-classic,include,href,Asp Classic,Include,Href,我有三个经典ASP页面: Root>Login>login.asp Root>Web>index.asp Root>Web>Section>index.asp 在Root>Web>index.asp和Root>Web>Section>index.asp中,我包括Root>Login>Login.asp: Root>Web>index.asp: <!--#include file="../login/login.asp" -->

我有三个经典ASP页面:

Root>Login>login.asp
Root>Web>index.asp
Root>Web>Section>index.asp
在Root>Web>index.asp和Root>Web>Section>index.asp中,我包括Root>Login>Login.asp:

Root>Web>index.asp: <!--#include file="../login/login.asp" -->
Root>Web>Section>index.asp: <!--#include file="../../login/login.asp" -->
适用于
Root>Web>index.asp
但是-当然-不适用于
Root>Web>Section>index.asp
,因为“href referenceal”

在HTML中,我执行以下操作:

<base href="../../"> 

在ASP上是否有类似的解决方案,或者我需要为每个解决方案创建一个IF?

在ASP中:

“/”>重定向到根目录,则此问题的最佳解决方案是简单地放置/不放置

RESPONSE.REDIRECT("/index.asp")
在ASP中:

“/”>重定向到根目录,则此问题的最佳解决方案是简单地放置/不放置

RESPONSE.REDIRECT("/index.asp")
另外,您可以使用
而不是
#include file=“../../login/index.asp”
也可以使用
而不是
#include file=“../../login/index.asp”