![](/html/ca/caf7/caf70ea3a3457993a6eb37d0c353289c7b493f82529198bd3db300e3b3d0fbe9/bg1.png)
FileUploader Control 使用說明
在 ASP.NET 應用程式中使用方式
1. 在瀏覽器中鍵入網址『http://codestorage.ria101.com.tw/CodeStorageRIAUser.html?CodeUid=87』以下
載檔案 (若您不是會員,請先建立帳號):
2. 建立 ASP.NET Web 應用程式:
http://www.StudyHost.Com
![](/html/ca/caf7/caf70ea3a3457993a6eb37d0c353289c7b493f82529198bd3db300e3b3d0fbe9/bg2.png)
FileUploader Control 使用說明
3. 在專案的 Reference 資料夾下,按右鍵並點選 Add Reference:
引用位於 Binaries 資料夾底下的 UploadService.dll
4. 在專案中建立 Web Service:
http://www.StudyHost.Com
![](/html/ca/caf7/caf70ea3a3457993a6eb37d0c353289c7b493f82529198bd3db300e3b3d0fbe9/bg3.png)
FileUploader Control 使用說明
public class FileReceiver : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
}
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
public class FileReceiver : StudyHost.Web.Services.FileUploadServiceBase
{
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
1. 開啟 Web Service(.asmx)的 Code Behide 程式碼(xxxx.cs),將
System.Web.Services.WebService 刪除:
2. 修改為繼承自 StudyHost.Web.Services.FileUploadServiceBase:
http://www.StudyHost.Com