2015-04-06 59 views
0

我想通过kendoupload上传文件并使用webservice接收文件。我的文件可能是一个相当大的文件。 这里是我的aspx:通过Kendo上传文件,Webservice

<input type="file" name="File1" id="File1" /> 
<input type="submit" value="Submit" class ="k-button" onclick="beginUpload()"/> 

这里是我的javascript:

function beginUpload() 
    { 
     $("#File1").kendoUpload({ 
      async: { 
       saveUrl: 'GetFile.asmx/ReceiveFile', 
       autoUpload: true 
      }, 
      multiple: false 
     }); 
    } 

最后这里是我的web服务:

[WebMethod] 
    public string ReceiveFile(string s) 
    { 

     return "Hello World!"; 
    } 

回答

0

文件上载到ASMX不支持(不但一般Kendo UI)。