<configuration>
<configSections>
.......................略過
</configSections>
<system.web>
<identity impersonate="true" userName="AAAA" password="0000" />
</system.web>
<connectionStrings>
上傳檔案的方式 C# ASP.NET 語法
FileUpload tempUpload = FileUpload1;
tempUpload.PostedFile.SaveAs(Server.MapPath(VirtualPathUtility.ToAbsolute(Server.UrlDecode("~/虛擬目錄別名/"))) + ServerFileName);
FileUpload tempUpload = FileUpload1;
tempUpload.PostedFile.SaveAs("\\\\192.168.0.10\\資料夾\\" + ServerFileName);
沒有留言:
張貼留言