Auto Postback after select

3 posts, 0 answers
  1. Gerry
    Gerry avatar
    26 posts
    Member since:
    Nov 2010

    Posted 22 Feb 2013 Link to this post

    I would like the async upload to automatically postback after I select a file.

    Is that possible?
  2. Plamen
    Plamen avatar
    2724 posts

    Posted 27 Feb 2013 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
  4. Gerry
    Gerry avatar
    26 posts
    Member since:
    Nov 2010

    Posted 06 Mar 2013 Link to this post

    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 %>', '');
Back to Top