得到WebService应用程序的路径
[WebMethod]
public string ShowWebServicePhysicalPath()
{
string strpath=System.Web.HttpContext.Current.Request.PhysicalPath;
return strpath.Substring(0,strpath.LastIndexOf(@"\"));
}
敏于事,慎于言
[WebMethod]
public string ShowWebServicePhysicalPath()
{
string strpath=System.Web.HttpContext.Current.Request.PhysicalPath;
return strpath.Substring(0,strpath.LastIndexOf(@"\"));
}