HttpContext 和 HttpRuntime中的一些属性的值。

本文详细展示了ASP.NET应用程序在特定目录结构下的运行时配置信息,包括应用路径、虚拟路径及请求URL等关键细节。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

HttpRuntime
System.Web.HttpRuntime
    base {object}: object
    AppDomainAppId: "f8c24d4a"
    AppDomainAppPath: "C:\\Documents and Settings\\FCCA\\桌面 \\abc\\"
    AppDomainAppVirtualPath: "/abc"
    AppDomainId: "f8c24d4a-1-127860256779375000"
    AspClientScriptPhysicalPath: "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\asp.netclientfiles"
    AspClientScriptVirtualPath: "/aspnet_client/system_web/2_0_50727"
    AspInstallDirectory: "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\"
    BinDirectory: "C:\\Documents and Settings\\FCCA\\桌面 \\abc\\bin\\"
    ClrInstallDirectory: "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\"
    CodegenDir: "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\abc\\035b6080\\e2080f56"
    MachineConfigurationDirectory: "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Config"

HttpContext.Current.Request
    AnonymousID: null
    ApplicationPath: "/abc"
    AppRelativeCurrentExecutionFilePath: "~/Default.aspx"
    CurrentExecutionFilePath: "/abc/Default.aspx"
    FilePath: "/abc/Default.aspx"
    Path: "/abc/Default.aspx"
    PathInfo: ""
    PhysicalApplicationPath: "C:\\Documents and Settings\\FCCA\\桌面 \\abc\\"
    PhysicalPath: "C:\\Documents and Settings\\FCCA\\桌面 \\abc\\Default.aspx"
    RawUrl: "/abc/Default.aspx"
    Url: {http://localhost:2000/abc/Default.aspx}
    UrlReferrer: null
    UserHostAddress: "127.0.0.1"
    UserHostName: "127.0.0.1"

HttpContext.Current.Request.Url
{http://localhost:2000/abc/default.aspx}
    AbsolutePath: "/abc/default.aspx"
    AbsoluteUri: " http://localhost:2000/abc/default.aspx"
    Authority: "localhost:2000"
    DnsSafeHost: "localhost"
    Fragment: ""
    Host: "localhost"
    HostNameType: Dns
    IsAbsoluteUri: true
    IsDefaultPort: false
    IsFile: false
    IsLoopback: true
    IsUnc: false
    LocalPath: "/abc/default.aspx"
    OriginalString: " http://localhost:2000/abc/default.aspx"
    PathAndQuery: "/abc/default.aspx"
    Port: 2000
    Query: ""
    Scheme: "http"
    Segments: {维数:[3]}
    UserEscaped: false
    UserInfo: ""

转载于:https://www.cnblogs.com/fuyun/archive/2006/03/05/343385.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值