Re: Clearing Ajax Uploader items

  •  06-28-2011, 8:47 AM

    Re: Clearing Ajax Uploader items

    Hi mchamo,
     
    You can try the following code:
     
    <%@ 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">
        protected void button1_Click(object sender, EventArgs e) 
        {  
                       Attachment1.DeleteAllAttachments(); 
        } 
    </script>
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head id="Head1" runat="server"> 
        <title>example</title> 
    </head> 
    <body> 
        <form id="Form1" runat="server"> 
            <CuteWebUI:UploadAttachments ID="Attachment1" runat="server"> 
            </CuteWebUI:UploadAttachments> 
            <asp:Button ID="button1" runat="server" Text="Clean items" OnClick="button1_Click" /> 
        </form> 
    </body> 
    </html>
     
    Thanks for asking
View Complete Thread