1

I am working an application with classic ASP.

Now i want to know how to resolve the url path for the below code.

<!--#include file="../hf/headerfooter.asp"-->

This is used in many other pages nested in different folder. So i want to resolve this path according to it.

Is there any url helper method available for ASP for doing that? In ASP.Net we can do with ~ symbol or using Control.ResolveUrl() method

How can done the same with Classic ASP. Any input welcome to achive this functionlaity.

4

1 回答 1

1

您可以使用:

<!--#include virtual="/hf/headerfooter.asp"--> 

包含具有虚拟路径而不是固定/绝对路径的文件。这将加载相对于您的站点根目录的文件。

于 2012-12-19T11:16:50.100 回答