Welcome Guest Search | Active Topics | Sign In | Register

AJAXUploader causing listbox controls to Full Postback Options
LMGinn
Posted: Wednesday, January 9, 2008 11:56:40 AM
Rank: Newbie
Groups: Member

Joined: 1/9/2008
Posts: 2
On my page I have an AJAXUploader and a few ListBox controls.
The ListBox Controls are in their own AJAX update panels.
When the AJAXUploader is present on the page, the ListBox controls force a full post back when the selected index is changed. When the AJAXUploader is not preset the ListBox controls do a partial page update as expected. I have the AutoPostBack = True of the ListBox. The uploader is not located in the ListBox’s UpdatePanel.

//Uploader
<eo:AJAXUploader ID="AJAXUploader1" runat="server" TempFileLocation="~/ul_temp" Width="250px">
</eo:AJAXUploader>

//UpdatePanel
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:ListBox ID="ListBox1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ListBox1_SelectedIndexChanged">
<asp:ListItem>Test1</asp:ListItem>
<asp:ListItem>Test2</asp:ListItem>
<asp:ListItem>Test3</asp:ListItem>
<asp:ListItem>Test4</asp:ListItem>
</asp:ListBox><br />
<br />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
</ContentTemplate>
</asp:UpdatePanel>



Any Ideas?
eo_support
Posted: Wednesday, January 9, 2008 5:06:20 PM
Rank: Administration
Groups: Administration

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

Please check your version. We created a blank page and put the two code snippets into it, then put the following code in handler ListBox1_SelectedIndexChanged:

Label1.Text = ListBox1.SelectedItem.ToString()

And it does partial postback as expected. We tested on our latest build (see your private messages for download link). So please try the same and let us know how it goes.

Thanks
LMGinn
Posted: Thursday, January 10, 2008 8:42:47 AM
Rank: Newbie
Groups: Member

Joined: 1/9/2008
Posts: 2
The New version fixed the problem

Thanks,

LM Ginn


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.