关于ssi的问题

gshadows 2002-12-30 11:40:42
filedetails.asp:
<%
dim strfdpathinfo
strfdpathinfo=Request.ServerVariables ("path_translated")

dim objfso,objfile
set objfso=createobject("scripting.filesystemobject")
set objfile=objfso.GetFile (strfdpathinfo)

%>
<p>
<hr>
<div style="font-size:11;font-family;verdana;">
filename:<b><%=objfile.name%></b><br>
server path:<b><%= Request.ServerVariables ("path_info")%></b><br>
Physical Path: <b><%=strfdpathinfo%></b><br>
File size:<b><% =objfile.size%>bytes</b><br>
Date Created:<b><% =objfile.datecreated%></b><br>
Date Last Modified:<b><%= objfile.datelastmodified%></b></br>
Date Last Accessed:<b><%= objfile.datelastaccessed%></b><br>
</div>

被插入的页

<html>
<head><title>Display Dictionary</title></head>
<body>
<%
dim strpathinfo,objfileitem
strpathinfo=Request.ServerVariables ("path_translated")

dim objfso,objfile,objfolder,objfoldercontents
set objfso=createobject("scripting.filesystemobject")

set objfile=objfso.getfile(strpathinfo)
set objfolder=objfile.parentfolder
set objfoldercontents=objfolder.files
%>

<table~~~.........一些表格输出的语句
</table>


'在这里插入
<!--#include file="fieldetails.asp"-->
</body></html>
提示错误: filedetails.asp 第2行 不解!! 因为filedetail.asp 用相同的方法插入到其他页没有问题,而且上页被插入前也没有问题!!



问题2: openastextstream方法的参数 为什么要用 常量赋值
...全文
40 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
gshadows 2002-12-31
  • 打赏
  • 举报
回复
您的意思是 filedetail.asp 中的 strfdpathinfo 换一个变量名字? 不要和插入页 有相同的变量名??
光明唧 2002-12-30
  • 打赏
  • 举报
回复
fieldetails.asp路径对吗?
江南昆虫 2002-12-30
  • 打赏
  • 举报
回复
dim strfdpathinfo
变量重定义错误!!!
gshadows 2002-12-30
  • 打赏
  • 举报
回复
对阿 因为同在一个文件夹下 问题是 插入到别的页没有问题
只有这个页有问题

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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