Hi. Is it possible to hide the "Cancel All Uploads" button on AJAX Uploader?

Last post 03-23-2010, 11:39 AM by icastel. 2 replies.
Sort Posts: Previous Next
  •  03-22-2010, 7:22 PM 59577

    Hi. Is it possible to hide the "Cancel All Uploads" button on AJAX Uploader?

    Hi.  Is it possible to hide the "Cancel All Uploads" button on AJAX Uploader?
  •  03-22-2010, 8:25 PM 59581 in reply to 59577

    Re: Hi. Is it possible to hide the "Cancel All Uploads" button on AJAX Uploader?

    Dear icastel,
     
    the following is a full example:
     

    <%@ Page Language="C#" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <script runat="server">
        void InsertMsg(string msg)
        {
            ListBoxEvents.Items.Insert(0, msg);
            ListBoxEvents.SelectedIndex = 0;
        }
        void Uploader_FileUploaded(object sender, UploaderEventArgs args)
        {
             InsertMsg("File uploaded! " + args.FileName + ", " + args.FileSize + " bytes.");
            //Copys the uploaded file to a new location.
            //args.CopyTo("c:\\temp\\"+args.FileName);
            //You can also open the uploaded file's data stream.
            //System.IO.Stream data = args.OpenStream();
        }
    </script>

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Selecting multiple files for upload</title>
        <style type="text/css">
              .AjaxUploaderCancelAllButton{ display:none;}
        </style>
         </head> <body>
        <form id="form1" runat="server">
            <div class="content">
                <h2>
                    Selecting multiple files for upload</h2>
                <p>
                    Select multiple files in the file browser dialog then upload them at once</p>
                <CuteWebUI:Uploader runat="server" CancelAllMsg="Cancel All" ID="Uploader1" InsertText="Upload Multiple Files (Max 10M)"
                    MultipleFilesUpload="true" OnFileUploaded="Uploader_FileUploaded">
                    <ValidateOption MaxSizeKB="102444440" />
                </CuteWebUI:Uploader>
                <br />
                <br />
                <div>
                    Server Trace:
                    <br />
                    <asp:ListBox runat="server" ID="ListBoxEvents" Width="400"></asp:ListBox>
                </div>
            </div>
        </form>
    </body>
    </html>
     
    Regards,
    Eric
  •  03-23-2010, 11:39 AM 59600 in reply to 59581

    Re: Hi. Is it possible to hide the "Cancel All Uploads" button on AJAX Uploader?

    Thanks Eric.  That worked
View as RSS news feed in XML