Hi jmoseley,
You can try the example below, it support resume. Note that, the resume function is based on the silverlight plug-in, so you need to set the upload type to silverlight and the browser must has the silverlight plug-in installed.
- <%@ Page Language="C#" Title="Customize the queue UI" %>
-
- <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
-
- <script runat="server">
-
-
-
- </script>
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- </head>
- <body>
- <form id="Form1" runat="server">
- <CuteWebUI:UploadAttachments runat="server" ID="UploadAttachments1" UploadType="Silverlight">
- </CuteWebUI:UploadAttachments>
- <div id="resumepanel" style="display: none">
- <span style="color: red">Error when uploading files</span>
- <button onclick="DoResume();return false;">
- Resume Task</button>
- <button onclick="DoCancel();return false;">
- Cancel Task</button>
- </div>
- </form>
- </body>
- </html>
-
- <script type="text/javascript">
- var uploader;
- function CuteWebUI_AjaxUploader_OnError(msg, task) {
- uploader = this;
- uploader.setresumeoption("Suppend");
- document.getElementById("resumepanel").style.display = "";
- return false;
- }
- function DoResume() {
- document.getElementById("resumepanel").style.display = "none";
- uploader.setresumeoption("Resume");
- }
- function DoCancel() {
- document.getElementById("resumepanel").style.display = "none";
- uploader.setresumeoption("Dispose");
- }
- </script>
Regards,
Ken