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

  1. Create a HTML button or image button which will be used as custom upload button.
  2. Use the InsertButtonID property to specify the ID of the control that will be used as the upload 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 upload button.   
  15.         uploader.InsertButtonID="uploadbutton"
  16.         'Step 5: Render Uploader
  17.         uploader.GetString()   
  18.     %>
  19.       <img id="uploadbutton" alt="Upload File" src="sampleimages/upload.png" />   
  20.     </div>  
  21. </body>  
  22. </html>