摘要:
private static string StartPath = System.Web.HttpContext.Current.Server.MapPath("School.mdb");在ASP.net类中引用Server.MapPath方法老是忘记Server.MapPath的使用方法了,下面记录一下,以备后用:总注:Server.MapPath获得的路径都是服务器上的物理路径,也就是常说的绝对路径1、Server.MapPath("/")注:获得应用程序根目录所在的位置,如 C:\Inetpub\wwwroot\。2、Server.MapPath( 阅读全文
posted @ 2012-04-11 21:53 yushff 阅读(178) 评论(0) 推荐(0)
浙公网安备 33010602011771号