Click here to Skip to main content
11,480,701 members (47,383 online)
Rate this: bad
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">
                                Stage 2A : T&C document upload</Header>
                                <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%"
                                                <br />
                                                <table align="center">
                                                            <asp:Label ID="lbl_TC_document_upload" runat="server" Text="Terms and Conditions document :  "></asp:Label>
                                                               <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 />
                                                                    <asp:Label ID="lbl_remarks" runat="server" Text="Remarks : "></asp:Label>
                                                                    <asp:TextBox ID="txt_remarks" runat="server" MaxLength="500"></asp:TextBox>
                                                <table align="center">
                                                            <asp:Button ID="btn_save_TC_document_upload" Text="Save" runat="server" align="left">
                                                            <asp:Button ID="btn_save_send_TC_document_upload" Text="Save & Send" runat="server"
                                            <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:PostBackTrigger ControlID="btn_save_TC_document_upload" />
                                        <asp:PostBackTrigger ControlID="btn_save_send_TC_document_upload" />
please suggest a suitable soln..
thanks in advance.
Posted 15-Apr-13 3:08am

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 294
1 OriginalGriff 145
2 CHill60 130
3 CPallini 125
4 Richard MacCutchan 75
0 Sergey Alexandrovich Kryukov 8,184
1 OriginalGriff 7,586
2 Sascha Lefèvre 3,114
3 Maciej Los 2,491
4 Richard Deeming 2,335

Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 15 Apr 2013
Copyright © CodeProject, 1999-2015
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