This is a migrated thread and some comments may be shown as answers.

Use RadUpload in C# code

1 Answer 56 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Chen
Top achievements
Rank 1
Chen asked on 06 Aug 2012, 03:18 PM
I have the following code to try to use RadUpload in Code,
private RadUpload _attUpLoad = new RadUpload();
  
....
  
_attUpLoad.UploadServiceUrl = WcfServiceHelper.ResolveUri("ExternalFileUpload.ashx").ToString();
_attUpLoad.FileUploaded += AttUpLoad_FileUploaded;
_attUpLoad.IsAutomaticUpload = true;
_attUpLoad.StartUpload();
I did not find the property of the RadUpload to allow me to add the file name list to be uploaded.

And is this the right way to use RadUpload in code without user interface?

Any help is appreciate.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 07 Aug 2012, 02:41 PM
Hi Chen,

This is indeed the right approach for using the RadUpload control in code-behind. You only need to add the files for upload and you can have a look at this tutorial to learn how. Let me know if it helps or if we can further assist you.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Upload
Asked by
Chen
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or