Hi mchamo,
Please try the example below
- <%@ 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)
- {
- for (int i = Attachment1.Items.Count - 1; i >= 0; i--)
- {
- Attachment1.Items[i].Remove();
- }
- }
- </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>
Regards,
ken