how to prevent the event onfileupload when browser back button click

2 posts, 0 answers
  1. M Kumar
    M Kumar avatar
    77 posts
    Member since:
    Apr 2008

    Posted 12 Mar Link to this post

         hi

                    I use function OnClientFilesUploaded() in that i call one button click event in the button click i save the file in DB ,after i click the browser back button i check  AsyncUpload1.UploadedFiles.Count=0 in IE,mozila,chrome,opera but in edge AsyncUpload1.UploadedFiles.Count=1 so in this path "E:\MU\AKPKCheckin\App_Data\RadUploadTemp" the file is not there so it through error message "could not find the file...." in that location.

     

  2. Attila Antal
    Admin
    Attila Antal avatar
    323 posts

    Posted 14 Mar Link to this post

    Hi,

    Once the file is uploaded, in the same event handler try to reload the page using Response.Redirect and see if that will prevent re-submission of the form.

    For example: 

    Response.Redirect(Request.RawUrl);

    Kind regards,
    Attila Antal
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top