惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
The Cloudflare Blog
量子位
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
D
DataBreaches.Net
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
U
Unit 42
博客园 - 聂微东
有赞技术团队
有赞技术团队
A
About on SuperTechFans

博客园 - 为自己加油!

测试工具备查 测试网 WEB测试资料 ViewState/Session/Caching/Cookies总结 背景样式 如何删除SQL Server表中的重复行 38年一遇的双七夕,今天你怎样过情人节? asp.net中如何设置相对路径? - 为自己加油! - 博客园 如何赋值? - 为自己加油! - 博客园 Chart相关网站 The usage of thumb 每日口语(6.14) - 为自己加油! - 博客园 一句妙语 每日口语(6.12) 我为世界杯狂 每日口语(6.8) English资料网址 六十八个超级经典小故事 保护你的DLL和Code不被别人使用。
如何得到网站运行虚拟目录的实际路径?
为自己加油! · 2006-08-02 · via 博客园 - 为自己加油!

利用 HttpRequest 对象

PhysicalApplicationPath
 获取当前正在执行的应用程序的根目录的物理文件系统路径。对于此示例,该属性将返回以下内容:C:\inetpub\wwwroot\
 
PhysicalPath
 获取与请求的 URL 对应的物理文件系统路径。对于此示例,该属性将返回以下内容:C:\inetpub\wwwroot\MyApplication\MyPages\default.aspx