Re: Avoid reload after UploadCompleted

  •  02-17-2014, 7:53 AM

    Re: Avoid reload after UploadCompleted

    Hi,

     

    If you want to avoid the page postback, I suggest you use it with the ajax UpdatePanel control.

     

    If you want to hide the uploader after uploaded, please try the way below.

     

    1. <%@ Page Language="C#" AutoEventWireup="True" %>  
    2.   
    3. <%@ Register Assembly="CuteWebUI.AjaxUploader" Namespace="CuteWebUI" TagPrefix="ajaxuploader" %>  
    4. <html>  
    5. <head>  
    6.     <script runat="server">  
    7.         protected void uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)  
    8.         {  
    9.             panel1.Visible = false;  
    10.         }  
    11.     </script>  
    12. </head>  
    13. <body>  
    14.     <form id="Form1" runat="server">  
    15.         <asp:Panel ID="panel1" runat="server">  
    16.             <CuteWebUI:UploadAttachments ID="uploader1" runat="server" OnUploadCompleted="uploader1_UploadCompleted"></CuteWebUI:UploadAttachments>  
    17.         </asp:Panel>  
    18.   
    19.     </form>  
    20. </body>  
    21. </html>  
     

    Regards,

     

    Ken 

View Complete Thread