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?

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

    Posted 05 Mar 2012 Link to this post

    Hello,

    Check the following demo.
    AsyncUpload / Persist Uploaded Files

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. 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. 
  5. 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?
  6. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 03 Mar 2014 Link to this post

    Hi,

    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.

    Regards,
    Hristo Valyavicharski
    Telerik
    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
UI for ASP.NET Ajax is Ready for VS 2017