来着有分,如何取得当前asp文件所在的站点和所在目录

atongm 2001-12-17 01:17:58
...全文
66 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
atongm 2001-12-17
  • 打赏
  • 举报
回复
那只得到/cn/member/index.asp
lazywolf 2001-12-17
  • 打赏
  • 举报
回复
用request("url")得到
atongm 2001-12-17
  • 打赏
  • 举报
回复
我的意思是:
如:http://www.sinoaec.com/cn/member/index.asp
然后在index.asp里取得http://www.sinoaec.com/cn/member/。
lonsen 2001-12-17
  • 打赏
  • 举报
回复
server.mapPath("file") 返回String,file文件位置
server.mapPath("/")返回String,服务器根目录

jsidiot 2001-12-17
  • 打赏
  • 举报
回复
server.mapPath("file")
绝对和相对都可以阿

28,390

社区成员

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

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