Create a custom upload button
There are two simple steps to create a custom upload button:
- Create a HTML button or image button which will be used as custom upload button.
- Use the InsertButtonID property to specify the ID of the control that will be used as the upload button.
Example:
- <% @ Language="VBScript" %>
-
-
- <html>
- <body>
- <div>
- <%
- Dim uploader
- Set uploader=new AspUploader
- uploader.Name="myuploader"
- uploader.SaveDirectory="savefiles"
-
- uploader.InsertButtonID="uploadbutton"
- uploader.GetString()
- %>
- <img id="uploadbutton" alt="Upload File" src="sampleimages/upload.png" />
- </div>
- </body>
- </html>