Persist files after PostbackTrigger Help

5 posts, 0 answers
  1. Maxi
    Maxi avatar
    3 posts
    Member since:
    Mar 2012

    Posted 05 Mar 2012 Link to this post

    Hello, i'm using RadAsyncUpload to send files to server. i am setting a postbacktrigger to button "save". The problem exists when a something goes wrong at server side.
    for example: if some textbox has the incorrect format a valitonsummary displays the error message, but the uploaded files disappear, its like the control reset.

    anyone knows how to stop the reset after PostbackTrigger?

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Mar 2012 Link to this post


    Check the following demo.
    AsyncUpload / Persist Uploaded Files

  3. Maxi
    Maxi avatar
    3 posts
    Member since:
    Mar 2012

    Posted 06 Mar 2012 Link to this post

    Thnaks, but the control 'RadAsyncUpload' is still losing the file after PostBackTrigger. 
  4. Brad
    Brad avatar
    1 posts
    Member since:
    Oct 2009

    Posted 26 Feb 2014 in reply to Shinu Link to this post

    I think what is being asked here is when the RadAsyncUpload control is being used on a page that has other controls which are validating (server side), and the page level validation fails (Page.IsValid = false), the upload control resets.

    Is there any way to persist the upload control across a postback when the page does not validate?
  5. Hristo Valyavicharski
    Hristo Valyavicharski avatar
    975 posts

    Posted 03 Mar 2014 Link to this post


    Unfortunately at the moment it is not possible to validate the AsyncUpload on the server with the ASP.NET Validators. There are two things, which you can do:
    • Validate AsyncUpload on the client with the ASP.NET Custom Validator
    • Or to use Custom Handler and perform server side validation in the Process() method.

    Hristo Valyavicharski
    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top