Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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


CSS
<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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900