There are two simple steps to create a custom cancel button:

  1. Create a HTML button or image button which will be used as custom cancel button.
  2. Use the CancelButtonID property to specify the ID of the control that will be used as the cancel button.


Example:

  1. <%Language="VBScript" %>  
  2. <!--Step 1: Register Uploader to your page -->  
  3. <!-- #include file="aspuploader/include_aspuploader.asp" -->  
  4. <html>  
  5. <body>  
  6.     <div>  
  7.     <%
  8.         'Step 2: Create Uploader object     
  9.         Dim uploader   
  10.         Set uploader=new AspUploader   
  11.         'Step 3: Set a unique name to Uploader
  12.         uploader.Name="myuploader"
  13.         uploader.SaveDirectory="savefiles"  
  14.         'Step 4: Specify ID of the control that will be used as cancel button.   
  15.         uploader.CancelButtonID="cancelbutton"
  16.         'Step 5: Render Uploader
  17.         uploader.GetString()   
  18.     %>
  19.     <img id="uploadercancelbutton" style='display:none;' alt="Cancel" src="cancel_button.gif" />   
  20.     </div>  
  21. </body>  
  22. </html>