AsyncFileUpload Event not working in visual studio 2012

Posted by Skkanagaraj under ASP.NET on 8/17/2013 | Points: 10 | Views : 1448 | Status : [Member] | Replies : 1
I created Ajax AsyncFileUpload control Dynamically, But AsyncFileUpload Event is not working ...

Dim fileUpload As New AjaxControlToolkit.AsyncFileUpload()
With fileUpload
.ID = ControlName
'.ClientIDMode = ClientIDMode.AutoID
.Width = ControlWidth
.Font.Bold = ControlFontBold
.Font.Name = ControlFontName
.Font.Size = 10
End With
AddHandler fileUpload.UploadedComplete, AddressOf fileUpload_UploadedComplete

Private Sub fileUpload_UploadedComplete(ByVal Sender As Object, ByVal e As AjaxControlToolkit.AsyncFileUploadEventArgs)

If FileUpload.HasFile Then
Session("ImageBytes") = FileUpload.FileBytes
ctlImage.ImageUrl = "~/Handler.ashx"
End If

End Sub


Posted by: Nitesh.Luharuka on: 8/29/2013 [Member] Starter | Points: 25

At which state of the page load cycle, did you create the AsyncFileUpload control?

Any reasons you want it to create dynamically?

Nitesh Luharuka

Skkanagaraj, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response