Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
pisos_com  
#1 Posted : Sunday, July 25, 2010 8:04:21 PM(UTC)
pisos_com

Rank: Newbie

Groups: Member
Joined: 7/21/2010(UTC)
Posts: 3

Hi, first sorry for my English but I don't speak it regularly.

I have a problem. I would like to execute a method when the image upload process finish. I try with AfterUpload="ImageUploader1_AfterUpload" and OnClientAfterUpload="ImageUploader1_AfterUpload" but the first way is not execute and the second way throw an error ("method doesn't exist").

Any idea about this problem? How I can execute a method at the finish of the image upload process?

I am using ASP.Net with VB.Net.

Thanks.

Dmitry.Obukhov  
#2 Posted : Monday, July 26, 2010 3:34:14 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Eduard,

Thank you for your question.

As far as I understand you use the ASP.NET control to embed Image Uploader on your page. So to use the method which should be executed after upload you should implement it on JavaScript on the client side:

Code:

<script type="text/javascript">
    function ImageUploader1_AfterUpload(html){
	 alert("ImageUploader1_AfterUpload works properly");
     }
</script>

Then you should set the value of the OnClientAfterUpload property to the name of method which should be executed after upload. In our case it is ”ImageUploader1_AfterUpload”:

Code:
 OnClientAfterUpload =  "ImageUploader1_AfterUpload" 

In this way the function ImageUploader1_AfterUpload will be executed after upload.

I created the simple application for you. I implemented the method which is executed after upload. I attached this application for your reference.

If you have additional questions please feel free to let me know.

File Attachment(s):
After_Upload_Sample.zip (2,388kb) downloaded 6 time(s).
Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

pisos_com  
#3 Posted : Monday, July 26, 2010 3:45:30 PM(UTC)
pisos_com

Rank: Newbie

Groups: Member
Joined: 7/21/2010(UTC)
Posts: 3

Thanks, I see my error. I thought that exist a 'AfterUpload' method at server-side, but not.
Users browsing this topic
Guest
Forum Jump  
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.