There are two simple steps to create a custom cancel button:
- Create a HTML button or image button which will be used as custom cancel button.
- Use the CancelButtonID property to specify the ID of the control that will be used as the cancel button.
Example:
- <% @ Language="VBScript" %>
- <!--Step 1: Register Uploader to your page -->
- <!-- #include file="aspuploader/include_aspuploader.asp" -->
- <html>
- <body>
- <div>
- <%
- 'Step 2: Create Uploader object
- Dim uploader
- Set uploader=new AspUploader
- 'Step 3: Set a unique name to Uploader
- uploader.Name="myuploader"
- uploader.SaveDirectory="savefiles"
- 'Step 4: Specify ID of the control that will be used as cancel button.
- uploader.CancelButtonID="cancelbutton"
- 'Step 5: Render Uploader
- uploader.GetString()
- %>
- <img id="uploadercancelbutton" style='display:none;' alt="Cancel" src="cancel_button.gif" />
- </div>
- </body>
- </html>