Hi nygter,
Below is the javascript part of the start upload manually example, it use to start the upload when click on the button. If you do not use the js code to start the upload, then when click on the button, it will not does anything.
- <script type="text/javascript">
- function submitbutton_click() {
- var submitbutton = document.getElementById('<%=SubmitButton.ClientID %>');
- var uploadobj = document.getElementById('<%=Uploader1.ClientID %>');
- if (uploadobj.getqueuecount() == 0) {
- submitbutton.click();
- } else {
- if (!window.filesuploaded) {
- if (uploadobj.getqueuecount() > 0) {
- uploadobj.startupload();
- }
- return false;
- }
- }
- window.filesuploaded = false;
- return true;
- }
- function CuteWebUI_AjaxUploader_OnPostback() {
- window.filesuploaded = true;
- var submitbutton = document.getElementById('<%=SubmitButton.ClientID %>');
- submitbutton.click();
- return false;
- }
- </script>
Regards,
Ken