Welcome Guest Search | Active Topics | Sign In | Register

AjaxUploader & UpdatePanel Options
Jan
Posted: Friday, March 8, 2013 7:41:33 AM
Rank: Newbie
Groups: Member

Joined: 3/8/2013
Posts: 1
Hi,

I have an issue with AjaxUploader control. The uploader forgets selected file if I execute a partial postback through UpdatePanel.

Code sample:

Code: HTML/ASPX
<div>
	<eo:AJAXUploader runat="server" ID="AJAXUploaderAudio" AutoPostBack="false" TempFileLocation="~/UploadTemp" >
		<LayoutTemplate>......</LayoutTemplate>
	</eo:AJAXUploader>
</div>
<div>
	<label>[This area is designated for partial update]</label>
	<asp:UpdatePanel runat="server" ID="up1" EnableViewState="false">
		<ContentTemplate>
			<asp:Label runat="server" ID="lblInfoText" Text="Update Me!" /><br />
			<asp:Button runat="server" ID="btnPartialUpdate" Text="Postback Update" OnClick="btnPartialUpdate_Click" />
		</ContentTemplate>
	</asp:UpdatePanel>
</div>


The user has to fill/select certain metadata on the form and he also needs to select a file (which I don't want to upload straight away). But if I execute a partial postback the file selection is gone.

I've tried to insert another invisible control on the page (outside UpdatePanel), but that didn't help.
Code: HTML/ASPX
<eo:AJAXUploader runat="server" ID="dummyUploader" TempFileLocation="~/UploadTemp" style="display:none" />


Any ideas how to solve this problem? Can I read file selection on client-side?

Thank you.
eo_support
Posted: Friday, March 8, 2013 3:03:14 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

We have confirmed this is a bug and have posted a new build that should fix this problem. Please see your private message for the download location of the new build.

Thanks!
Roland
Posted: Monday, May 13, 2013 4:06:48 AM
Rank: Newbie
Groups: Member

Joined: 5/11/2013
Posts: 2
I had this exact problem.

Just replace UpdatePanel with the EO CallbackPanel and your problem should be solved. Also remove the 'Content' tags as with CallbackPanel you do not need them.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.