Server.MapPath()
来源:互联网 发布:php开源crm 编辑:程序博客网 时间:2024/04/28 01:28
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
- 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
- C#写的日志类,模仿log4写的
- 不确定性原理的前世今生 · 数学篇(三)
- 作文
- MFC - 通过spy++查找应用程序菜单对应函数的方法
- 内存屏障
- Server.MapPath()
- 安卓新导入工程中gen目录下无R文件解决方法
- Android系统编译过程中常见问题汇总(1)
- [NOI2009]变换序列
- 某渣系统潜规则,不断更新
- ASPX 如何读取 AppData 目录下面的XML (C#实现)
- Web前端研发工程师编程能力飞升之路
- SHH框架构造五--实体关系
- IE6下 元素宽度或高度 与其他浏览器不同的原因