Dear Bart,
Please refer to the following code:
1. AjaxUploaderCodeBehindTest.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AjaxUploaderCodeBehindTest.aspx.vb" Inherits="AjaxUploaderCodeBehindTest" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<CuteWebUI:UploadAttachments ID="UploadAttachments1" runat="server" >
</CuteWebUI:UploadAttachments>
</div>
</form>
</body>
</html>
2.AjaxUploaderCodeBehindTest.aspx.vb
Partial Class AjaxUploaderCodeBehindTest
Inherits System.Web.UI.Page
Protected Sub UploadAttachments1_FileUploaded(ByVal sender As Object, ByVal args As CuteWebUI.UploaderEventArgs) Handles UploadAttachments1.FileUploaded
args.CopyTo("e:\\temp\\" & args.FileName)
End Sub
Protected Sub AttachmentRemoveClicked(ByVal sender As Object, ByVal args As CuteWebUI.AttachmentItemEventArgs) Handles UploadAttachments1.AttachmentRemoveClicked
Dim hoi As String = "hoi"
End Sub
End Class