Server.MapPath()
来源:互联网 发布:网络阅读媒介有哪些 编辑:程序博客网 时间:2024/05/20 18:18
Server.MapPath()
./当前目录
/网站主目录
../上层目录
~/网站虚拟目录
如果当前的网站目录为E:\wwwroot 应用程序虚拟目录为E:\wwwroot\company 浏览的页面路径为E:\wwwroot\company\news\show.asp
在show.asp页面中使用
Server.MapPath("./") 返回路径为:E:\wwwroot\company\news
Server.MapPath("/") 返回路径为:E:\wwwroot
Server.MapPath("../") 返回路径为:E:\wwwroot\company
Server.MapPath("~/") 返回路径为:E:\wwwroot\company
server.MapPath(request.ServerVariables("Path_Info"))
Request.ServerVariables("Path_Translated")
上面两种方式返回路径为 D:\wwwroot\company\news\show.asp
阅读全文
0 0
- Server.MapPath()
- Server.MapPath
- Server.MapPath
- Server.MapPath()
- Server.MapPath()
- Server.MapPath
- Server.MapPath(".") Server.MapPath("./") Server.MapPath("/") Server.MapPath用法详解
- server .mappath
- SERVER.MapPath()
- Server.MapPath()
- Server.MapPath()
- Server.MapPath()
- Server.MapPath()
- Server.MapPath()
- Server.MapPath()
- Server.MapPath()
- Server.MapPath()
- Server.MapPath
- 深度学习:正则化方法
- ant的好处
- python正则模块
- Arctic Network (Kruskal)
- JDBC(13)—JDBC调用存储过程和函数
- Server.MapPath()
- C++程序的编写和实现
- UVA
- 判断一个路径是否存在
- for in循环
- 微信小程序中引用FontAwesome字体
- git学习笔记整理-3-
- Mac L2TP VPN无法连接问题
- 畅通工程||HDU1863