欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Asp.net獲取當前目錄的方法小結(jié)

 更新時間:2013年07月30日 10:05:32   作者:  
有時候可能出現(xiàn)找不到類的情況,請引用System.Web.dll

方法一:

string sPath = System.IO.Path.GetDirectoryName(Page.Request.PhysicalPath)

方法二:

string sPath = System.Web.HttpContext.Current.Request.MapPath("/")                                         

方法三:
string sPath = Page.Server.MapPath("/");

我推薦使用第二種

相關(guān)文章

最新評論