ASP Uploader Class Reference |
|
Uploader.ManualStartUpload Property
Gets or sets a boolean indicating whether Uploader automatically starts uploading as soon as a user selects a file.
Example Code
- <% @ Language="VBScript" %>
-
- <html>
- <head>
- <script type="text/javascript">
- function doStart()
- {
- var uploadobj = document.getElementById('myuploader');
- if (uploadobj.getqueuecount() > 0)
- {
- uploadobj.startupload();
- }
- else
- {
- alert("Please browse files for upload");
- }
- }
- </script>
- </head>
- <body>
- <form id="form1" method="POST">
- <%
- Dim uploader
- Set uploader=new AspUploader
- uploader.Name="myuploader"
- uploader.ManualStartUpload=true;
- uploader.Render()
- %>
- <button id="submitbutton" onclick="doStart();return false;">Start Uploading Files</button>
- </form>
- </body>
- </html>