看板 C_Sharp 關於我們 聯絡資訊
在ASP.Net的web.config設定某檔案的相點路徑 <configuration> ..... <appSettings> <add key="Test" value="ABC/test.xml"></add> </appSettings> </configuration> 讀取方式是: string path = System.Configuration.ConfigurationSettings.AppSettings["Test"]; 想請教若在某*.cs檔中讀取成physical path 發現Web相關的Server.MapPath()這函式不能使用, 該怎麼轉呢? -- 貫徹分享精神 我為人人,人人為我 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.119.187.211