Using the demo code to keep things simple.
When I click the cancel button, it appears this portion of the code runs..
Protected Sub SlickUpload1_UploadComplete(ByVal sender As Object, ByVal e As UploadStatusEventArgs) Handles SlickUpload1.UploadComplete
uploadPanel.Visible = False
resultPanel.Visible = True
If Not e.UploadedFiles Is Nothing AndAlso e.UploadedFiles.Count > 0 Then
'Simulate post processing
Dim status As NameValueCollection = New NameValueCollection
For i As Integer = 0 To 100
status("percentComplete") = i.ToString()
status("percentCompleteText") = i.ToString() + "%"
'Update the progress context
e.Status.UpdatePostProcessStatus(status)
System.Threading.Thread.Sleep(100)
Next i
status("percentComplete") = "100"
status("percentCompleteText") = "100 %"
'Update the progress context as complete
e.Status.UpdatePostProcessStatus(status, True)
resultsRepeater.DataSource = e.UploadedFiles
resultsRepeater.DataBind()
resultsRepeater.Visible = True
Else
resultsRepeater.Visible = False
End If
End Sub
How do I determin the uploaded was terminated so any code I have in here does not run? I tried using e.Status.State but to no avail. Thanks.