Upload for ASP.NET Web Forms includes several client-side events that allow you to manipulate C1Upload when an action occurs such as a file being uploaded.
You can use the sever-side properties, listed in the Client Side Event table, to specify the name of the JavaScript function that will respond to a particular client-side event. For example, to assign a JavaScript function called "Upload" to respond when file is being uploaded, you would set the OnClientUpload property to "Upload".
The following table lists the events that you can use in your client scripts. These properties are defined on the server side, but the actual events or the name you declare for each JavaScript function are defined on the client side.
Event Server-Side Property Name | Event Name | Description |
---|---|---|
OnClientChange | change | Occurs when the user selects a file. |
OnClientComplete | complete | Occurs when the file upload is complete. See Showing an Uploaded Imagefor an example. |
OnClientProgress | progress | Occurs when the files is uploading. |
OnClientTotalComplete | totalComplete | Occurs when the uploadAll button is clicked and the file upload is complete. |
OnClientTotalProgress | totalProgress | Occurs when the uploadAll button is clicked and the file is uploading. |
OnClientTotalUpload | totalUpload | Occurs when the uploadAll button is clicked. |
OnClientUpload | upload | Occurs before the file is uploaded. See Showing an Uploaded Imagefor an example. |
Descriptions and syntax examples for the C1Upload client-side events can be found at http://wijmo.com/docs/wijmo/.