Hello everyone,
I'm using the AJAXUploader, this is part of my code:
Code: HTML/ASPX
<eo:AJAXUploader ID="UploaderRic" runat="server" BrowseButtonText="Sfoglia..."
CancelButtonText="Cancella" UploadButtonText="Carica" width="400"
AllowedExtension="pdf" ClientSideOnError="error_handler"
ProgressTextFormat="Caricamento in corso - {percentage}%"
AutoPostBack="false" PostedFileLabelFormat="{posted_file_name}"
MaxFileCount="1">
<LayoutTemplate>
<table>
<tr>
<td style="text-align:left">
<asp:PlaceHolder ID="InputPlaceHolder" runat="server">Input Box Place Holder</asp:PlaceHolder>
</td>
<td style="text-align:right">
<asp:Button ID="UploadButton" runat="server" Text="Carica" />
</td>
</tr>
<tr>
</tr>
<tr>
<td style="text-align:left">
<eo:ProgressBar ID="ProgressBar" runat="server" Width="330" ControlSkinID="Windows_XP" />
</td>
<td style="text-align:right">
<asp:Button ID="CancelButton" runat="server" Text="Annulla" />
</td>
</tr>
<tr>
<td>
<asp:PlaceHolder ID="ProgressTextPlaceHolder" runat="server">Progress Text Place Holder</asp:PlaceHolder>
</td>
</tr>
<tr>
<td style="padding-right: 5px; text-align:left;">
<asp:PlaceHolder ID="PostedFilesPlaceHolder" runat="server">Posted Files</asp:PlaceHolder>
</td>
<td style="text-align:'right'">
<asp:Button ID="DeleteButton" runat="server" Text="Elimina" />
</td>
</tr>
</table>
</LayoutTemplate>
</eo:AJAXUploader>
In my page I also have more controls (radiobuttons etc.) that cause the page to postback.
I don't use AutoPostBack, because I want to upload a file and then click a "submit" button.
If I upload a file (clicking on the "browse" button and then on the "UploadButton" button) everything works, I find my uploaded file, which I can delete or submit.
My problem is: after uploading a file, if I don't submit it and the page posts backs twice (for example by clicking twice on any radiobutton options) I loose the uploaded file.
On my tempdir there are the 3 temp files, but the control won't show the uploaded file on the page. How can I avoid this?
Thank you
Daniele