Server.MapPath
来源:互联网 发布:csgo脚步声优化 编辑:程序博客网 时间:2024/06/03 20:37
转载自:http://www.cnblogs.com/Showshare/archive/2007/04/23/723965.html
老是忘记Server.MapPath的使用方法了,下面记录一下,以备后用:
总注:Server.MapPath获得的路径都是服务器上的物理路径,也就是常说的绝对路径1、Server.MapPath("/")
注:获得应用程序根目录所在的位置,如 C:\Inetpub\wwwroot\。
2、Server.MapPath("./")
注:获得所在页面的当前目录,等价于Server.MapPath("")。
3、Server.MapPath("../")
注:获得所在页面的上级目录。
4、Server.MapPath("~/")
注:获得当前应用级程序的目录,如果是根目录,就是根目录,如果是虚拟目录,就是虚拟目录所在的位置,如C:\Inetpub\wwwroot\Example\。
阅读全文
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
- shared保存对象到本地出现IOException异常问题
- js解析复杂json对象
- iOS webSocket 和 网络 基础知识
- Nginx(一):静态资源web服务器配置详解
- bzoj 2427 HAOI 2010 软件安装 (dp+tarjan缩点)
- Server.MapPath
- 顺序表类模板
- OpenGL 入门基础教程 —— 彩色立方体
- MFC--CListCtrl控件(2)
- 初始身手
- android 从activity中停止Service
- tomcat问题集锦
- Linux下system()函数引发的错误
- asp代码刷新界面的实现