摘要:
获取网站根目录的方法有几种如:Server.MapPath(Request.ServerVariables["PATH_INFO"]) Server.MapPath("/") Server.MapPath("") Server.MapPath(".") Server.MapPath("../") Server.MapPath("..") Page.Request.ApplicationPath 以上的代码在http://localhost/EnglishClub/manage/WebForm1.aspx页面 运行结果: C:\Inetpub\wwwroot\EnglishClub\ma 阅读全文