Re: Ajax Uploader - ManualStartUpload="true"

  •  06-15-2011, 9:38 PM

    Re: Ajax Uploader - ManualStartUpload="true"

    Hi mchamo,
     
    Please try the example below. Function "CuteWebUI_AjaxUploader_OnSelect" will fire before the uploader control postback to the server. So you can execute your own script code in it before the "FileUploaded" event.
     
    <%@ Page Language="C#" %>

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

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <CuteWebUI:Uploader ID="Uploader1" runat="server">
            </CuteWebUI:Uploader>
        </form>
    </body>
    </html>
    <script>
    function CuteWebUI_AjaxUploader_OnSelect(files)

    {
        alert("before postback!");

    }
    </script>
     
    Regards,
     
    ken
View Complete Thread