How do i Hide the multiple upload button and cancel/cancel all

Last post 03-10-2009, 8:36 AM by cutechat. 5 replies.
Sort Posts: Previous Next
  •  03-06-2009, 11:23 AM 49574

    How do i Hide the multiple upload button and cancel/cancel all

    I would like to hold all the buttons after the upload is started, after the user browses the file to upload and uploader attaches the first file I would like to hide those buttons
    Thanks.
  •  03-06-2009, 11:42 AM 49577 in reply to 49574

    Re: How do i Hide the multiple upload button and cancel/cancel all

    Hi,
    You can use the NumFilesShowCancelAll property.
     
    You can specify the CancelButtonID for a button witch style.display=none
     
    Regards,
    Terry
     
  •  03-06-2009, 11:54 AM 49582 in reply to 49577

    Re: How do i Hide the multiple upload button and cancel/cancel all

    i am using

    Attachments1.NumFilesShowCancelAll = 1000

    in the

    OnPreRender

    Event, however it will disppear from the bottonm of the control and will appear on the top
    right beside
    the UploadMultipleFilesNow button
    And is there a way to reference the insert button from code behind without js
     
    Thanks
     
  •  03-06-2009, 12:26 PM 49585 in reply to 49582

    Re: How do i Hide the multiple upload button and cancel/cancel all

    Hi,
     
    Can you post a screenshot ?
     
    You can check this sample too :
     
     
    Regards,
    Terry
  •  03-10-2009, 8:29 AM 49678 in reply to 49585

    Re: How do i Hide the multiple upload button and cancel/cancel all

     
    I would like to get rid of the cancel upload button
    I am using attachments1.NumFilesShowCancelAll=1000 to hide the cancel all upload, I would also like to hide the uploadmultiplefiles button once the upload is initiated.
    Thanks
  •  03-10-2009, 8:36 AM 49680 in reply to 49678

    Re: How do i Hide the multiple upload button and cancel/cancel all

    Hi,
     
     
    Here is a sample :
     
     
     

    <%@ Page Language="C#" %>

    <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
     <title>Sample</title>
     <style>
     .CssCancelButton
     {
      display:none!important;
     }
     </style>
     <script type="text/javascript">
     function CuteWebUI_AjaxUploader_OnStart()
     {
      this.internalobject.insertBtn.style.display="none";
     }
     function CuteWebUI_AjaxUploader_OnStop()
     {
      this.internalobject.insertBtn.style.display="";
     }
     function CuteWebUI_AjaxUploader_OnPostback()
     {
      this.internalobject.insertBtn.style.display="";
     }
     </script>
    </head>
    <body>
     <form id="form1" runat="server">
      <div>
       <CuteWebUI:UploadAttachments runat="server" ID="UploadAttachments1" CancelButtonID="CancelButton"
        NumFilesShowCancelAll="1000" />
       <asp:Button runat="server" ID="CancelButton" CssClass="CssCancelButton" Text="Cancel" />
      </div>
     </form>
    </body>
    </html>

     
     
     
    Regards,
    Terry
     
     
View as RSS news feed in XML