兰保明

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 [WebMethod]
 public string ShowWebServicePhysicalPath()
 {
        string strpath=System.Web.HttpContext.Current.Request.PhysicalPath;
        return  strpath.Substring(0,strpath.LastIndexOf(@"\")); 
}

posted on 2011-08-05 15:12  兰保明  阅读(1923)  评论(0编辑  收藏  举报