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

Auto Postback after select

2 Answers 223 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Gerry
Top achievements
Rank 1
Gerry asked on 22 Feb 2013, 04:34 PM
I would like the async upload to automatically postback after I select a file.

Is that possible?

2 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 27 Feb 2013, 12:49 PM
Hi Gerry,

 
You can achieve it by using OnClientFilesUploaded event by manually clicking on the upload button as done in the article or by using AjaxRequest to trigger a postback for upload.

Hope this will be helpful.

Greetings,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Gerry
Top achievements
Rank 1
answered on 06 Mar 2013, 05:12 PM
Thank you for your answer. You pushed me in the right direction. I wasn't able to implement the method you pointed me to. It could have been that my RadScriptManager was located on the master page while my Upload control was on a User control nested in a page. Anyhow, this is what ended up working for me:

In this case my btnAttach is invisible and is only used to catch the postback on the click event.
function RadUpload2_FileUploaded(sender,args)
{
    //Add JavaScript handler code here
    __doPostBack('<%= btnAttach.UniqueID %>', '');
}
Tags
AsyncUpload
Asked by
Gerry
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Gerry
Top achievements
Rank 1
Share this question
or