1
Vote

Flajaxian disappears after postback in AJAX Tab container

description

Hi there,
 
Firstly thanks for the great tool, works really well except there appears to be an issue with the reloading on postback.
 
Changing the tab loads the next view as expected, but changing back the upload tab postback causes the control to disappear. The only way to get it back is to refresh the page.
 
Please confirm :)
 
<asp:ScriptManager ID="ScriptManager1" runat="server" />
                <asp:UpdatePanel ID="dynamicPanel" runat="server" UpdateMode="Always">
                    <ContentTemplate>
                        <cc1:TabContainer ID="tabHolder" runat="server" ActiveTabIndex="3" Width="638px"
                            OnActiveTabChanged="tabChanged" AutoPostBack="True" OnLoad="tabInit">            
                            <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel1">
                                <HeaderTemplate>
                                    Example
                                </HeaderTemplate>
                                <ContentTemplate>
                                </ContentTemplate>
                            </cc1:TabPanel>
                            <cc1:TabPanel ID="TabPanel4" runat="server" HeaderText="TabPanel1">
                                <HeaderTemplate>
                                    Add File
                                </HeaderTemplate>
                                <ContentTemplate>
                                    <fjx:FileUploader ID="FileUploader1" runat="Server" onFileReceived="FileUploader_FileReceived">
                                    </fjx:FileUploader>
                                </ContentTemplate>
                            </cc1:TabPanel>
                        </cc1:TabContainer></ContentTemplate>
                </asp:UpdatePanel>

comments

Rocky23 wrote Mar 3, 2011 at 8:56 AM

Ah its the update panel causing the problem, not the tab. To resolve add the following: UseInsideUpdatePanel="true"

<asp:UpdatePanel runat="server">
<ContentTemplate>

    <fjx:FileUploader ID="FileUploader1" UseInsideUpdatePanel="true" runat="server">
    </fjx:FileUploader>
</ContentTemplate>
</asp:UpdatePanel>

wrote Feb 14, 2013 at 8:00 PM