Welcome Guest Search | Active Topics | Sign In | Register

Can Uploader postback on clicking Delete button? Options
swabygw
Posted: Sunday, December 13, 2009 9:09:02 PM
Rank: Member
Groups: Member

Joined: 8/11/2009
Posts: 14
Can Uploader postback on clicking Delete button? To try it, I added the following line to the template:

AddHandler DeleteButton.Click, AddressOf DeleteButton_Click

Sub DeleteButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Response.Write("test")
End Sub


But, I got the following error: "BC30676: 'Click' is not an event of 'Object'."

Is a postback on the Delete button click possible?
eo_support
Posted: Sunday, December 13, 2009 9:51:06 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

No. You never need to handle the Delete button because when you delete a file from the uploader, you are deleting an item from a list that is not yet submitted to your application yet. It's like deleting a character from a textbox before hitting the "Submit" button. It is perfectly fine and has nothing to do with your application because the list is not submitted to you yet. You can see here for more details:

http://doc.essentialobjects.com/library/1/ajaxuploader/ajaxuploader_behavior.aspx

"Delete" occurs on stage 1. Whatever your code do would occurs on stage 2 and afterwards. If you wish to have a list of "submitted files" (as oppose to "uploaded temporary files"), then you will have your own UI and delete button for it.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.