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.
|
|
|
|
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. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
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.
|
|
|
|
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.