请问如何配置iis可以让iis解析html的 #include 命令,谢谢!!

CNet 2004-04-23 09:31:30
使用asp或者asp.net的时候我们可以使用#include命令,让页面包含某个文件.
但是如果直接写在.html页面中#include却不能生效:
例如:
让页面包含 footer.inc文件
<table>
<tr>
<td>
test include
</td>
</tr>
</table>

test.html
<html>
<body>
<!-- #include file ="footer.inc" -->
</body>
</html>
在test.html这个例子#include 没有生效,
但是在test.asp
<html>
<body>
<!-- #include file ="footer.inc" -->
</body>
</html>
是可以起作用的.

请问如何配置iis可以让iis解析html的 #include 命令,谢谢!
...全文
344 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
floy 2004-07-30
  • 打赏
  • 举报
回复
shtml
北京的雾霾天 2004-04-23
  • 打赏
  • 举报
回复
这个地方还是一个角呢,是要分来喽,呵呵
北京的雾霾天 2004-04-23
  • 打赏
  • 举报
回复
真是个好问题:)

8,327

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 IIS
社区管理员
  • IIS
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧