Re: How to stop autopostback after selecting multiple files

  •  09-05-2012, 7:26 AM

    Re: How to stop autopostback after selecting multiple files

    Hi,

     

    The example below shows you how to hide the "cancel" and "cancel all" button.

     

    1. <%@ Page Language="C#" Title="Customize the queue UI" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7.     <style>  
    8. .AjaxUploaderCancelAllButton {  
    9.  display: none !important;  
    10. }  
    11. </style>  
    12. </head>  
    13. <body>  
    14.     <form id="Form1" runat="server">  
    15.         <CuteWebUI:UploadAttachments ID="uploader1" runat="server" CancelButtonID="myCancel">  
    16.         </CuteWebUI:UploadAttachments>  
    17.         <input type="button" id="myCancel" style="visibility: hidden" />  
    18.     </form>  
    19. </body>  
    20. </html>  
     

    1. Set property  "CancelButtonID" and hide the control what you set for will hide the "cancel" button.

     

    2. The style setting below use to hide the "cancel all" button.

     

    <style>
    .AjaxUploaderCancelAllButton {
     display: none !important;
    }
    </style>
     

    Regards,

     

    Ken 

View Complete Thread