Refresh-air

清风明月本无价 近水远山皆有情
记载自己在码砖过程中遇到的点点滴滴.......

 

2013年5月29日

.Net下获取程序路径的方法

摘要: //方法一: string sPath = System.IO.Path.GetDirectoryName(this.Page.Request.PhysicalPath); //方法二:("images/")是当前虚拟目录下的任意目录 sPath = System.Web.HttpContext.Current.Request.MapPath("images/"); //方法三: sPath = Page.Server.MapPath("images/"); //("images/... 阅读全文

posted @ 2013-05-29 10:26 笑清风 阅读(3287) 评论(0) 推荐(0) 编辑

导航