Request.UrlReferrer 同Request.Url获取数据

来源:互联网 发布:超星泛雅网络教学平台 编辑:程序博客网 时间:2024/06/05 22:32

由WebForm1.aspx 页面 点击跳转到WebForm2.aspx页面

Request.UrlReferrer  当前页面:值为null
{http://localhost:3961/WebForm1.aspx}
    AbsolutePath: "/WebForm1.aspx"
    AbsoluteUri: "http://localhost:3961/WebForm1.aspx"
    Authority: "localhost:3961"
    DnsSafeHost: "localhost"
    Fragment: ""
    Host: "localhost"
    HostNameType: Dns
    IsAbsoluteUri: true
    IsDefaultPort: false
    IsFile: false
    IsLoopback: true
    IsUnc: false
    LocalPath: "/WebForm1.aspx"
    OriginalString: "http://localhost:3961/WebForm1.aspx"
    PathAndQuery: "/WebForm1.aspx"
    Port: 3961
    Query: ""
    Scheme: "http"
    Segments: {string[2]}
    UserEscaped: false
    UserInfo: ""
Request.Url
{http://localhost:3961/WebForm2.aspx}
    AbsolutePath: "/WebForm2.aspx"
    AbsoluteUri: "http://localhost:3961/WebForm2.aspx"
    Authority: "localhost:3961"
    DnsSafeHost: "localhost"
    Fragment: ""
    Host: "localhost"
    HostNameType: Dns
    IsAbsoluteUri: true
    IsDefaultPort: false
    IsFile: false
    IsLoopback: true
    IsUnc: false
    LocalPath: "/WebForm2.aspx"
    OriginalString: "http://localhost:3961/WebForm2.aspx"
    PathAndQuery: "/WebForm2.aspx"
    Port: 3961
    Query: ""
    Scheme: "http"
    Segments: {string[2]}
    UserEscaped: false
    UserInfo: ""

原创粉丝点击