I created a small test to check it out
- Public Class _Default
- Inherits System.Web.UI.Page
-
- Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
-
- Dim fileUploader As New CuteWebUI.UploadAttachments
- fileUploader.ID = "fileUploader"
- fileUploader.ManualStartUpload = "true"
-
- AddHandler fileUploader.AttachmentRemoveClicked, AddressOf fileUploader_AttachmentRemoveClicked
- Dim btnAddFiles As New Button
- btnAddFiles.ID = " btnAddFiles"
- btnAddFiles.CssClass = "Inputbutton"
- btnAddFiles.Text = "Toevoegen"
- btnAddFiles.Attributes.Add("OnClick", "document.getElementById('" & form1.ClientID & "_fileUploader').startupload();return false;")
- Dim hfTotalSize As New HiddenField
- hfTotalSize.ID = "hfTotalSize"
- hfTotalSize.Value = "0"
- form1.Controls.Add(fileUploader)
- form1.Controls.Add(New LiteralControl("<br />"))
- form1.Controls.Add(btnAddFiles)
- form1.Controls.Add(hfTotalSize)
-
- End Sub
- Sub fileUploader_AttachmentRemoveClicked(ByVal sender As Object, ByVal args As CuteWebUI.AttachmentItemEventArgs)
- Dim hoi As String = "hoi"
- End Sub
-
- End Class
but if I set a debugpoint at row26 nothing happens while clicking the red cross
So somewhere the AttachmentRevomodeClicked isn't triggert correctly,
Downloaded the new version of the uploadcontrol today.
Regs Bart