ComponentOne Upload for ASP.NET WebForms
Quick Start / Step 2 of 4: Show an Alert When Upload Completes
In This Topic
    Step 2 of 4: Show an Alert When Upload Completes
    In This Topic

    In this step you will use the totalComplete client-side event to show an alert dialog box when all files have been uploaded.

    1. Click the Design tab to enter Design view if you are not already in this view.
    2. Select the C1Upload control on the page and in the Properties window, set the OnClientTotalComplete property to "totalComplete".
    3. Click the Source tab to switch to Source view.
    4. Within the <asp:Content> tags, add the following markup to assign a JavaScript function called "totalComplete" to respond when all files have been uploaded:
      HTML
      Copy Code
      <script type="text/javascript">
          function totalComplete(e, data)
              {
              alert("Upload Complete!");
              }
      </script>
      
           
      

    Step 2 of 4 Completed

    In this step, you used the totalComplete client-side event to show an alert dialog box when all files have been uploaded. In the next step, you will determine the size of the files that can be uploaded.

    See Also