![](upload/erji2.jpg)
一般新增aspx檔打"Server.MapPath"是可以作用的
但是如果新增放在App_Code裡的Class檔,打"Server.MapPath"是沒有作用的
要如何讓Class檔裡有"Server.MapPath"的方法呢..
step1:在Class檔裡要先using System.Web;
step2:利用HttpContext.Current.Server.MapPath就可以使用了
了解更多请访问:http://www.ndfweb.cn/news-491.html
日照市东港区创新电子技术中心 |
合作伙伴:万网 | 新网 | 新网互联 | NDF网站建设淘宝店 | 实用工具 | 外貿網站建設 | 联系我们 |
![]() |
Sitemap - RSS![]() |