|
Request.RawUrl
| |
|
原始 URL 定义为 URL 中域信息之后的部分。在 URL 字符串 http://www.contoso.com/articles/recent.aspx 中,原始 URL 为/articles/recent.aspx。原始 URL 包括查询字符串(如果存在)。
|
/MyWeb/Store/Page1.aspx?ddddd=9
|
|
Request.Path
| |
|
当前请求的虚拟路径。
|
/MyWeb/Store/Page1.aspx
|
|
Request.PathInfo
| |
|
对于URL Http://www.contoso.com/virdir/page.html/tail,PathInfo 值为/tail。
|
|
|
Request.CurrentExecutionFilePath 和 Request.FilePath
| |
|
/MyWeb/Store/Page1.aspx
| |
|
Request.PhysicalApplicationPath
| |
|
获取当前正在执行的服务器应用程序的根目录的物理文件系统路径。(应用程序的跟目录)
|
k:/MyWeb/MyWeb/
|
|
Request.PhysicalPath
| |
|
获取与请求的 URL 相对应的物理文件系统路径。
|
k:/MyWeb/MyWeb/Store/Page1.aspx
|
|
Request.ApplicationPath
| |
|
获取服务器上 ASP.NET 应用程序的虚拟应用程序根路径。
|
/MyWeb
|
|
AppDomain.CurrentDomain.BaseDirectory
| |
|
获取基目录,它由程序集冲突解决程序用来探测程序集。
|
k:/MyWeb/MyWeb/
|
|
AppDomain.CurrentDomain.RelativeSearchPath
| |
|
获取相对于基目录的路径,在此程序集冲突解决程序应探测专用程序集。
|
Bin
|
|
Assembly.CodeBase
| |
|
获取最初指定的程序集的位置
| |
|
Assembly.Location
| |
|
如果包含清单的已加载文件没有被影像复制,则获取该文件的基本代码格式的位置。
|
c:/windows/microsoft.net/framework/v1.1.4322/temporary asp.net files/myweb/a6aa4523/7564b5f7/assembly/dl2/19cb75f7/002a8314_c272c601/myweb.dll
|
|
Request.Server.MapPath()
| |
|
将指定的虚拟路径映射到物理路径。
|
|
ASP.NET中的路径问题
ASP.NET 请求路径解析
最新推荐文章于 2024-08-27 20:50:47 发布
本文详细介绍了ASP.NET中各种请求路径的获取方法及其含义,包括Request.RawUrl、Request.Path等属性,有助于理解Web应用中不同路径的区别。
626

被折叠的 条评论
为什么被折叠?



