Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET VB.NET updatepanel , +
i have a updates panels in my page which is a must.
the fileupload works fine with PostBackTrigger, but when i try retrieve the file from database, i am not able to do so with the update panel arroutnd.
 
the code snippet illstrated my exact piont of problem
 

 <asp:AccordionPane ID="AccordionPane_TC_document_upload" runat="server" Enabled="true">
                            <Header>
                                Stage 2A : T&C document upload</Header>
                            <Content>
                                <asp:UpdatePanel ID="UpdatePanel_TC_document_upload" runat="server" UpdateMode="Always">                                    <ContentTemplate>
                                        <asp:Panel ID="Panel_TC_document_upload" ScrollBars="None" runat="server" Width="100%"
                                            Enabled="false">
                                            <p>
                                                <br />
                                                <table align="center">
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="lbl_TC_document_upload" runat="server" Text="Terms and Conditions document :  "></asp:Label>
                                                            <td>
                                                               <asp:FileUpload ID="fu_TC_document_upload" runat="server" />
                                                               <asp:LinkButton ID="lnk_btn_TC_filename" runat="server" Font-Bold="true" ForeColor="Blue" OnClick="TC_retrieve_file" ></asp:LinkButton>
                                                                     
                                                               <asp:Button ID="lnk_btn_TC_file_delete" runat="server"  OnClick="TC_delete_file" text ="Delete File" ></asp:Button>
                                                               <%--<asp:Label ID="fu_fileName" runat="server" Font-Bold="true" ForeColor="Blue"></asp:Label>--%><br />
                                                            </td>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lbl_remarks" runat="server" Text="Remarks : "></asp:Label>
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txt_remarks" runat="server" MaxLength="500"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                </table>
                                                <table align="center">
                                                    <tr>
                                                        <td>
                                                            <asp:Button ID="btn_save_TC_document_upload" Text="Save" runat="server" align="left">
                                                            </asp:Button>
                                                        </td>
                                                        <td>
                                                                          
                                                        </td>
                                                        <td>
                                                            <asp:Button ID="btn_save_send_TC_document_upload" Text="Save & Send" runat="server"
                                                                align="right"></asp:Button>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </p>
                                            <p class="style1" align="left">
                                                Signed  By: <asp:Label ID="lbl_signby_TC_document_upload" runat="server"
                                                    Text="" ForeColor="Black"></asp:Label>                                                  
                                                Signed On:<asp:Label ID="lbl_signon_TC_document_upload" runat="server" Text="" ForeColor="Black"></asp:Label></p>
                                        </asp:Panel>
                                   </ContentTemplate>
                                    <Triggers>
                                        <asp:PostBackTrigger ControlID="btn_save_TC_document_upload" />
                                    </Triggers>
                                    <Triggers>
                                        <asp:PostBackTrigger ControlID="btn_save_send_TC_document_upload" />
                                    </Triggers>
                               </asp:UpdatePanel>
                            </Content>
                        </asp:AccordionPane>
please suggest a suitable soln..
thanks in advance.
Posted 15-Apr-13 3:08am
Pyakaa802

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 299
1 Maciej Los 295
2 Sergey Alexandrovich Kryukov 230
3 Aajmot Sk 191
4 Sinisa Hajnal 166
0 OriginalGriff 7,760
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,785


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 15 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100