Re: Large File Upload with Confirmation E-mail Support

  •  12-24-2010, 9:58 AM

    Re: Large File Upload with Confirmation E-mail Support

    Dear Darin,
     
    Please refer to the following code:
    <%@ Page Language="C#" %>
    <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader, Version=3.0.0.0, Culture=neutral, PublicKeyToken=bc00d4b0e43ec38d" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <script runat="server">
        protected void Uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)  
        {   
            //please write code of email confirmation here      
            string msg = "You have uploaded " + args.Length + " files";  
            foreach (UploaderEventArgs arg in args)  
            {  
                msg += "\r\n" + arg.FileName + "," + arg.FileSize;  
            }  
     
            Label1.Text = msg;     }  
    </script>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>UploadCompleted sample</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <CuteWebUI:Uploader runat="server" ID="Uploader1" MultipleFilesUpload="True" OnUploadCompleted="Uploader1_UploadCompleted">
            </CuteWebUI:Uploader>
            <pre>
    <asp:Label runat="server" ID="Label1" />           </pre>
        </div>
        </form>
    </body>
    </html>

    Thank you for asking
View Complete Thread