Kenneth: Hi Jagmohan,
The asp uploader does not support to use multiple instances in the same page, I suggest you use Iframe taget to achieve it.
Regards,
Ken
Ken,
Care to give us an example of how to achieve this?
I tried to modify the current sample of single file, but no luck.
- <%@ Language="VBScript" %>
- <!-- #include file="aspuploader/include_aspuploader.asp" -->
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>
- Form - Single File Upload
- </title>
- <link href="demo.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div class="demo">
-
- <h2>Single File Upload</h2>
- <p> A basic sample demonstrating the use of the Upload control (Allowed file types: <span style="color:red">jpg, gif, png, zip, pdf</span>).</p>
-
- Upload 1:
- <%
- Dim uploader
- Set uploader=new AspUploader
- uploader.Name="myuploader"
-
- uploader.MaxSizeKB=4096
- uploader.InsertText="Upload File (Max 4MB)"
- uploader.AllowedFileExtensions="*.jpg,*.png,*.gif,*.zip,*.pdf"
- uploader.MultipleFilesUpload=false
-
-
- uploader.SaveDirectory=""
-
- uploader.render()
- %>
-
- <br/><br/>
- Upload 2:
- <%
- Dim uploader2
- Set uploader2=new AspUploader
- uploader2.Name="myuploader2"
-
- uploader2.MaxSizeKB=4096
- uploader2.InsertText="Upload File (Max 4MB)"
- uploader2.AllowedFileExtensions="*.jpg,*.png,*.gif,*.zip,*.pdf"
- uploader2.MultipleFilesUpload=false
-
-
- uploader2.SaveDirectory=""
-
- uploader2.render()
- %>
-
- <br/><br/>
-
-
- <script type=
- function CuteWebUI_AjaxUploader_OnTaskComplete(task)
- {
- alert(task.FileName + " is uploaded!");
- }
- </script>
-
- </div>
- </body>
- </html>