I have create Dialogbox with the ajaxupload control and 2 buttons (An apply and a cancel button)
The 2 buttons are registered as acceptbutton and as CancelButton. The AcceptButtonPostBack option and the CancelButtonPostBack option are true.
In the PostBack actions i have defined the following code:
Code: Visual Basic.NET
Protected Sub cmdFileUpload_Abort_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim uplFileUpload_Files As EO.Web.AJAXUploader = CType(Me.dialogUpload.ContentContainer.FindControl("uplFileUpload_Files"), EO.Web.AJAXUploader)
uplFileUpload_Files.Visible = False
End Sub
After the frist click on then cancel button (Raise the error), than i can click on the button and the error are not raised.
It has with visible state of the ajaxupload to do.