ASP.NET中关于路径的实例说明
2010-05-19 23:50
363 查看
在有虚拟目录的情况下是这样的:
HttpContext.Current.Request.ServerVariables["HTTPS"]=
HttpContext.Current.Request.ServerVariables["Server_Name"]=localhost
HttpContext.Current.Request.ServerVariables["SERVER_PORT"]=4911
HttpContext.Current.Request.ApplicationPath=/FSEWES.WEB
HttpContext.Current.Request.Pat=/FSEWES.WEB/Default3.aspx
HttpContext.Current.Request.PathInfo=
HttpContext.Current.Request.PhysicalApplicationPath=E:\application\Project\EWES\src\FSEWES.WEB\
HttpContext.Current.Request.PhysicalPath=E:\application\Project\EWES\src\FSEWES.WEB\Default3.aspx
HttpContext.Current.Request.RawUrl=/FSEWES.WEB/Default3.aspx
HttpContext.Current.Request.Url=http://localhost:4911/FSEWES.WEB/Default3.aspx
在站点下面则是这样的:HttpContext.Current.Request.ServerVariables["HTTPS"]=off
HttpContext.Current.Request.ServerVariables["Server_Name"]=localhost
HttpContext.Current.Request.ServerVariables["SERVER_PORT"]=80
HttpContext.Current.Request.ApplicationPath=/
HttpContext.Current.Request.Pat=/Default3.aspx
HttpContext.Current.Request.PathInfo=
HttpContext.Current.Request.PhysicalApplicationPath=E:\application\Project\EWES\src\FSEWES.WEB\
HttpContext.Current.Request.PhysicalPath=E:\application\Project\EWES\src\FSEWES.WEB\Default3.aspx
HttpContext.Current.Request.RawUrl=/Default3.aspx
HttpContext.Current.Request.Url=http://localhost:4911/Default3.aspx
HttpContext.Current.Request.ServerVariables["HTTPS"]=
HttpContext.Current.Request.ServerVariables["Server_Name"]=localhost
HttpContext.Current.Request.ServerVariables["SERVER_PORT"]=4911
HttpContext.Current.Request.ApplicationPath=/FSEWES.WEB
HttpContext.Current.Request.Pat=/FSEWES.WEB/Default3.aspx
HttpContext.Current.Request.PathInfo=
HttpContext.Current.Request.PhysicalApplicationPath=E:\application\Project\EWES\src\FSEWES.WEB\
HttpContext.Current.Request.PhysicalPath=E:\application\Project\EWES\src\FSEWES.WEB\Default3.aspx
HttpContext.Current.Request.RawUrl=/FSEWES.WEB/Default3.aspx
HttpContext.Current.Request.Url=http://localhost:4911/FSEWES.WEB/Default3.aspx
在站点下面则是这样的:HttpContext.Current.Request.ServerVariables["HTTPS"]=off
HttpContext.Current.Request.ServerVariables["Server_Name"]=localhost
HttpContext.Current.Request.ServerVariables["SERVER_PORT"]=80
HttpContext.Current.Request.ApplicationPath=/
HttpContext.Current.Request.Pat=/Default3.aspx
HttpContext.Current.Request.PathInfo=
HttpContext.Current.Request.PhysicalApplicationPath=E:\application\Project\EWES\src\FSEWES.WEB\
HttpContext.Current.Request.PhysicalPath=E:\application\Project\EWES\src\FSEWES.WEB\Default3.aspx
HttpContext.Current.Request.RawUrl=/Default3.aspx
HttpContext.Current.Request.Url=http://localhost:4911/Default3.aspx
相关文章推荐
- [sql server] 非常简单的实例说明 如何用.net访问sql server(asp.net 和 c# )
- Asp.net遍历数组实例!(源代码示例,有傻瓜说明!)
- ASP.NET MVC 关于MasterPage中<script>标签的文件路径自动解析
- 关于asp.net的实例
- 关于进行Asp.net窗体验证的过程说明 转自 kingwkb 的 Blog
- [NET]关于在ASP.NET中物理路径和虚拟路径的取得
- Asp.net生命周期实例说明
- ASP.NET整合Discuz!NT3.5实例说明(含用户登录、评论等)
- 关于ASP.NET"未能映射路径"问题
- 关于《ASP.NET办公自动化系统开发实例导航》问题的一些总结
- ASP.NET 2.0关于用户登录限制问题实例:防止同一用户同时登陆
- 关于进行Asp.net窗体验证的过程说明
- 关于进行Asp.net窗体验证的过程说明 选择自 http://dev.csdn.net/article/85015.shtm
- 关于Asp.net中Get,Set的详细说明
- 关于Asp.net负载均衡的一些说明介绍
- 使用ASP.NET中关于代码分离的实例分享
- 关于在ASP.NET中物理路径和虚拟路径的取得
- ASP.NET中关于路径(Path)的相关知识
- ASP.NET整合Discuz!NT3.5实例说明(含用户登录、评论等)