网站目录
2016-03-25 18:05
267 查看
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")
相关文章推荐
- 我的git学习记录------------从廖雪峰老师网站的学习总结
- 网站开发只需数小时?Meteor 说这才是未来
- 构建高并发高可用的电商平台架构实践
- Linphone架构及功能分析
- EF+WCF+MVC实现SOA架构
- 有哪些你觉得能借助学习以自我提升的网站推荐?
- 当你想对常用网站定制属于自己的颜色,然而又没人理你怎么办
- 设置网站expires和max-age属性
- 1号店交易系统架构如何向「高并发高可用」演进
- 用CSS边框图像让你的网站更漂亮
- 10个学习Android开发的网站推荐
- 大型网站架构演化发展历程
- 大型网站技术架构PDF阅读笔记(一):
- 能够破解网站禁止复制的插件:Enable Copy
- Linux设备驱动之I2C架构分析
- EF架构~CodeFirst自关联表的插入
- Android GPS架构分析
- 读书笔记:Ajax/REST架构对于侵入式Web应用的优势
- android开发环境下载网站
- 通过百度站长平台简单分析网站降权