经常为这个URL的问题去调试,今天给一个表在这里参考:
About Request.Url
Request.Url
{http://localhost/Ubisoft.Asset.Web/WebForm1.aspx?id=3&abc=def}
AbsolutePath: "/Ubisoft.Asset.Web/WebForm1.aspx"
AbsoluteUri: "http://localhost/Ubisoft.Asset.Web/WebForm1.aspx?id=3&abc=def"
LocalPath: "/Ubisoft.Asset.Web/WebForm1.aspx"
OriginalString: "http://localhost:80/Ubisoft.Asset.Web/WebForm1.aspx?id=3&abc=def"
PathAndQuery: "/Ubisoft.Asset.Web/WebForm1.aspx?id=3&abc=def"
Query: "?id=3&abc=def"
Authority: "localhost"
DnsSafeHost: "localhost"
Fragment: ""
Host: "localhost"
HostNameType: Dns
IsAbsoluteUri: true
IsDefaultPort: true
IsFile: false
IsLoopback: true
IsUnc: false
Port: 80
Scheme: "http"
UserEscaped: false
UserInfo: ""
Segments: {Dimensions:[3]}
[0]: "/"
[1]: "Ubisoft.Asset.Web/"
[2]: "WebForm1.aspx"
Request.Url
{http://localhost/Ubisoft.Asset.Web/WebForm1.aspx?id=3&abc=def}
AbsolutePath: "/Ubisoft.Asset.Web/WebForm1.aspx"
AbsoluteUri: "http://localhost/Ubisoft.Asset.Web/WebForm1.aspx?id=3&abc=def"
LocalPath: "/Ubisoft.Asset.Web/WebForm1.aspx"
OriginalString: "http://localhost:80/Ubisoft.Asset.Web/WebForm1.aspx?id=3&abc=def"
PathAndQuery: "/Ubisoft.Asset.Web/WebForm1.aspx?id=3&abc=def"
Query: "?id=3&abc=def"
Authority: "localhost"
DnsSafeHost: "localhost"
Fragment: ""
Host: "localhost"
HostNameType: Dns
IsAbsoluteUri: true
IsDefaultPort: true
IsFile: false
IsLoopback: true
IsUnc: false
Port: 80
Scheme: "http"
UserEscaped: false
UserInfo: ""
Segments: {Dimensions:[3]}
[0]: "/"
[1]: "Ubisoft.Asset.Web/"
[2]: "WebForm1.aspx"