Re: OnUploadCompleted Not firing in code behind.

  •  09-01-2010, 1:04 AM

    Re: OnUploadCompleted Not firing in code behind.

    Hi Tarus,
     
    Please test the example below. AjaxUploader work with a UpdatePanel and the method UploadCompleted works fine.
     
    If you  still get this issue, please create a simple page which can reproduce this issue and send it to Kenneth@CuteSoft.net. I will check it and get back to you as soon as possible.
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    4.   
    5. <script runat="server">   
    6.   
    7.     protected void uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)   
    8.     {   
    9.         label1.Text = "upload complete fire";   
    10.     }   
    11. </script>   
    12.   
    13. <html xmlns="http://www.w3.org/1999/xhtml">   
    14. <head runat="server">   
    15.     <title>Untitled Page</title>   
    16. </head>   
    17. <body>   
    18.     <form id="form1" runat="server">   
    19.         <div>   
    20.             <asp:ScriptManager ID="ScriptManager1" runat="server">   
    21.             </asp:ScriptManager>   
    22.             <asp:UpdatePanel ID="updatePanel1" runat="server">   
    23.                 <ContentTemplate>   
    24.                     <CuteWebUI:Uploader ID="uploader1" runat="server" OnUploadCompleted="uploader1_UploadCompleted">   
    25.                     </CuteWebUI:Uploader>   
    26.                     <br />   
    27.                   <asp:Label ID="label1" runat="server"></asp:Label>    
    28.                 </ContentTemplate>   
    29.             </asp:UpdatePanel>   
    30.                 
    31.         </div>   
    32.     </form>   
    33. </body>   
    34. </html>  
    Regards,
     
    Ken
View Complete Thread