.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