Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

AsyncFileUpload uploads twice

$
0
0

Hi,

I have a working AsyncFileUpload and the AsyncFileUpload_UploadedComplete function gets called and then I save the file with a filename from a TextBox on the same page.

This Textbox is also used in conjunction with a search button to look for already uploaded files.

So after an upload, when I change the filename in the TextBox and press the button the previously uploaded file gets uploaded again with the new filename because AsyncFileUpload_UploadedComplete fires again on postback.

How can I prevent this from happening?


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>