This project has moved and is read-only. For the latest updates, please go here.

Calling StartUpload() function & button click event handler

Sep 30, 2009 at 12:02 PM


Thanks a lot for your opensource control.

My problem is, I want to call StartUpload() method from my button & when all files are uploaded I want to execute the code written in button's event handler, but what exactly happening is It calls "slCtl.Content.Control.StartUpload();" method & before finishing the upload the control goes to my event handler.

 Please have a look on my javaScript function.

function StartUpload() {
            var slCtl = document.getElementById('<!--uploadControl.ClientID-->');
            if (slCtl != null) {
                return slCtl.Content.Control.StartUpload();


I'm setting the filenames to a Session variable in HttpUploadHandler.ashx so I need to all upload get finished before my event get fired. So in this case 
what should I do.
Thank you.
Best regards,
Parimal Modi