Click here to Skip to main content
11,920,641 members (57,319 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB ASP.NET VB.NET File-Upload , +
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 OriginalGriff 548
1 Dave Kreskowiak 245
2 phil.o 170
3 KrunalRohit 134
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,203
3 George Jonsson 2,815
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web03 | 2.8.151120.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