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

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: ""
posted @ 2006-03-05 18:06  浮云  阅读(608)  评论(0编辑  收藏  举报