Server.MapPath 的使用方法
2015-11-14 14:01
351 查看
Server.MapPath 的使用方法
用法:
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 ("~")。
用法:
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 ("~")。
相关文章推荐
- 安卓开发之px dp sp区别以及应用
- 在项目中同时使用Objective-C和Swift
- IOS的空指针和野指针
- Android案例(4)——微信6.0主界面
- IOS-27-iOS/OS X内存管理:基本概念与原理/内存泄露分析
- Android Studio与文档注释
- Java 的安装和Java Applet在浏览器中的使用
- iOS支付宝集成详细流程
- Android 使用RecyclerView 报错NoSuchMethodError
- android学习——控制硬加速 hardwareAccelerated 在3.0才有的。
- android开源组件官方地址
- android 数据存储一SharedPrenference存储简单数据
- 加速Android Studio/Gradle构建
- unity3d问题集 <1> FixedUpdate()与Update()的异同
- [Cocos2d塔防游戏开发]Cocos2dx-3.X完成塔防游戏《王国保卫战》--敌人(二)之BOSS
- gradle入门到实践1
- Android中GPU硬件加速控制及其在2D图形绘制上的局限
- iOS 开发App捕获异常, 反馈给服务器, 提高用户体验
- android.os.NetworkOnMainThreadException
- android三种布局优化的方法:include,merge,ViewStub