Events

Nov 22, 2008 at 5:12 AM
I love this.  It fits perfectly with a site I'm working on. 

I'm using to upload n pictures and save the file location to a database.  I had already made changes like you suggested in the previous topic, and it is working very well.   I need to automatically navigate (or refresh current page) but the OnPluginSourceDownloadComplete event fires when the page loads, so I can't use it to navigate.

Also, some .NET level events would be nice to expose...

ZM
Coordinator
Nov 22, 2008 at 5:32 AM
Edited Nov 22, 2008 at 5:32 AM

You can use the JavascriptCompleteFunction property.  It will be called once all the files have been uploaded.  You can use this to redirect or refresh the page:

 

 

 

<script type="text/javascript">
function OnComplete() {
    window.location.reload();
}
</script>

Then on the control: 

<

 

DC:MultiFileUploadControl runat="server" ID="fileUpload" Width="500" Height="300" UploadPage="~/FileUpload.ashx" JavascriptCompleteFunction="OnComplete"  />

Hope this helps do what you want.
Darick

 

 

 

 

 

Nov 22, 2008 at 12:49 PM
That doesn't seem to work for me.   It doesn't seem to do anything actually..