Re: FileUploaded event did not fire when file uploaded successfully !

  •  10-08-2008, 8:57 PM

    Re: FileUploaded event did not fire when file uploaded successfully !

    Hi acomas,
     
    Do you want the FileUploaded event fire before the completion of the upload?
     
    like:
     
    1.fire some events(if true can upload,else can not upload)
    2.file upload
     
    if so,you can try the following code:

    <%@ Page Language="VB" %>


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html>
    <head id="HEAD1" runat="server">
        <title>test</title>
     </head>
    <body>
        <form id="MyForm" method="post" runat="server">

        <script language=javascript >
    //called when files be selected..
        function CuteWebUI_AjaxUploader_OnSelect(files)
    {

     //a long name , or a short name..
     var filename=files[0].FileName;
     //return false to cancel it..
     return false;
    }
        </script>
        <CuteWebUI:Uploader ID=uploader1 runat=server ></CuteWebUI:Uploader>
        </form>
    </body>
    </html>
     
    Regards
     
    Ken
View Complete Thread