Last post Jun 18, 2015 03:30 AM by Antonio Bou
Sep 19, 2012 04:22 PM|atnpgo|LINK
By any chance, does anyone have any idea how I could clear the file list from the AjaxFileUpload control?
I haven't had any luck clearing it from the code behind and my only luck was hidding the div using jQuery. I probably should add that the control is inside an Update Pannel which is inside a modal popup extender.
Sep 19, 2012 05:34 PM|javedwahid|LINK
I'm guessing you can't just set the value of the file upload to "".
Sep 19, 2012 11:52 PM|chetan.sarode|LINK
Sep 20, 2012 09:07 AM|atnpgo|LINK
I'm not talking about the ASyncFileUpload
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AsyncFileUpload/AsyncFileUpload.aspx Control, im talking about the AjaxFileUpload http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx Control
which was released this year.
The new control doesn't use inputs and therefore the linked solution doesn't work. (yes I tried making a few modifications to it but still without success.)
Dec 08, 2013 11:24 AM|Thair99|LINK
I know it too late
but I am replying because this might help somebody one day
use theis line of code
<asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" Width="450px" MaximumNumberOfFiles="1"
AllowedFileTypes="png,jpg,jpeg,gif" OnClientUploadCompleteAll="emptyMyAjaxFileUpload" />
Jun 18, 2015 03:30 AM|Antonio Bou|LINK
Yes, it did help.
Many thanks for the info :)