Page reload after Upload Error

Last post 07-05-2010, 4:07 AM by Dac. 2 replies.
Sort Posts: Previous Next
  •  06-22-2010, 1:07 PM 61939

    Page reload after Upload Error

    When I upload 1 single file and an exception is thrown server-side it triggers OnError and OnTaskError. Because there haven't been any succesful uploads the OnStop also gets triggered and there will not be a page reload.
     
    Can I make the OnStop not stop the postback (return false doesnt work for this one) or some other mechanism (MinSucceededFiles with default 1 which I can set to 0) to still get a page reload like the one when there was a succesful file uploaded? I want to sort the presentation of the errors server-side rather then sorting it in client-side.
  •  07-03-2010, 2:48 AM 62264 in reply to 61939

    Re: Page reload after Upload Error

    Hi,
     
    When you upload one or multiple files,
     
    OnStop only fired when all files are failed.
     
    Any way, if you want to postback the page ,
     
    How about call any button.click() to force the page postback , in the OnStop event ?
     
    Regards,
    Terry
     
  •  07-05-2010, 4:07 AM 62284 in reply to 62264

    Re: Page reload after Upload Error

    Hi,
     
    It's good to know that nothing else needs to happen after the OnStop. I have added a doPostback to the onstop and now it works fine!
     
    Thanks for the info.
     
    Kind regards,
     
    Dac
View as RSS news feed in XML