Server.MapPath()
来源:互联网 发布:java函数命名规范 编辑:程序博客网 时间:2024/06/06 04:17
本文转载自:http://www.cnblogs.com/yangfan/archive/2008/05/23/1205976.html
./当前目录
/网站主目录../上层目录
~/网站虚拟目录
如果当前的网站目录为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
- Children’s Queue
- ipnut (表单)
- WPF控件之ScrollViewer
- css自动换行问题
- AES加密/解密算法 128bit、192bit、256bit秘钥 支持CBC 可直接在MCU上运行
- Server.MapPath()
- hive账单表算连续逾期以及累计逾期
- jquery 根据name属性查找元素
- vue+node+webpack
- 设计模式之适配器模式(六)
- vs2017 自带发布工具 ClickOnce发布包遇到的问题
- tensorboard在linux下的启动问题
- STL vector容器自己实现
- angular $location服务的配置