asp 必须为 MapPath 方法指定 Path 参数

来源:互联网 发布:安卓源码编译教程 编辑:程序博客网 时间:2024/05/17 09:16

最近在调试一个过去的项目,asp写的,提示:必须为 MapPath 方法指定 Path 参数

如下图:


strPath = Server.MapPath("")MapPath的参数不能为空。如果是当前目录,可以用一个小数点表示:strPath = Server.MapPath(".")
网站要目录用斜杠表示:
strPath = Server.MapPath("/")


1 0
原创粉丝点击