Re: FileUploaded event is not fired!

  •  12-08-2008, 3:35 AM

    Re: FileUploaded event is not fired!

    Hi cassini,
     
    You have missed the following script
     
     
     
         <script type="text/javascript">
     
     function submitbutton_click()
     {
      var submitbutton=document.getElementById('<%=SubmitButton.ClientID %>');
      var uploadobj=document.getElementById('<%=Uploader1.ClientID %>');
      if(!window.filesuploaded)
      {
       if(uploadobj.getqueuecount()>0)
       {
        uploadobj.startupload();
       }
       else
       {
        var uploadedcount=parseInt(submitbutton.getAttribute("itemcount"))||0;
        if(uploadedcount>0)
        {
         return true;
        }
        alert("Please browse files for upload");
       }
       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
View Complete Thread