摘要: 记性不好,好多次都被路径问题给拦住了.我现在想得到一个资源的全URL路径,因此首先想得到网站当前的域名,端口和虚拟目录.看下表底下這張表就是各種跟 Browser Request 的網址相關的屬性與用法: 網址:http://localhost:1897/News/Press/Content.aspx/123?id=1#tocRequest.ApplicationPath/Request.PhysicalPathD:\Projects\Solution\web\News\Press\Content.aspxSystem.IO.Path.GetDirectoryName(Request.Phys 阅读全文
posted @ 2011-11-29 11:04 为爱痴狂 阅读(8307) 评论(1) 推荐(4)