server.mapPath()的几种用法.
来源:互联网 发布:qq酷淘宝客怎么样 编辑:程序博客网 时间:2024/06/05 10:10
1.Server.MapPath("/") 应用程序根目录所在的位置 如 C:/Inetpub/wwwroot/
2.Server.MapPath("./") 表示所在页面的当前目录
注:等价于Server.MapPath("") 返回 Server.MapPath("")所在页面的物理文件路径
3.Server.MapPath("../")表示上一级目录
4.Server.MapPath("~/")表示当前应用级程序的目录,如果是根目录,就是根目录,如果是虚拟目录,就是虚拟目录所在的位置 如:C:/Inetpub/wwwroot/Example/
注:等效于Server.MapPath("~")。
2.Server.MapPath("./") 表示所在页面的当前目录
注:等价于Server.MapPath("") 返回 Server.MapPath("")所在页面的物理文件路径
3.Server.MapPath("../")表示上一级目录
4.Server.MapPath("~/")表示当前应用级程序的目录,如果是根目录,就是根目录,如果是虚拟目录,就是虚拟目录所在的位置 如:C:/Inetpub/wwwroot/Example/
注:等效于Server.MapPath("~")。
- server.mapPath()的几种用法.
- ASP.NET中Server.MapPath的几种用法
- ASP.NET中Server.MapPath的几种用法
- Server.MapPath的用法
- Server.MapPath的用法
- Server.MapPath 的用法
- Server.MapPath的用法
- Server.MapPath的用法
- Server.MapPath和Request.MapPath()的用法
- Server.MapPath和Request.MapPath()的用法
- Server.MapPath 的用法说明
- Server.MapPath(".") Server.MapPath("./") Server.MapPath("/") Server.MapPath用法详解
- 关于Server.MapPath的具体用法
- 关于asp中Server.MapPath()的用法
- Server.MapPath()中参数的用法
- server.mappath用法
- server.mappath用法
- Server.MapPath() 用法
- WINDOWS漏洞:粘置键
- .Net平台开发的技术规范与实践精华总结
- AIX系统之topas命令
- rfc793中文翻译四(dlmu2001)
- 2003server下自动倒入站点的XML
- server.mapPath()的几种用法.
- 数据库联接(转)
- 如何对付别人的PING
- 大地坐标换算
- 单件模式(Singleton Pattern)
- PHP中截取字符
- NET2.0 MD5
- 职业方向测试
- 工厂方法模式(Factory Method)