Uploader1.FileUploaded Event Being Raised Twice

  •  09-14-2009, 10:42 PM

    Uploader1.FileUploaded Event Being Raised Twice

    Why is the asp.Net server side event is being raised twice?
    What am I doing wrong that the event is being raised twice?
    Does that mean the file is being downloaded twice?

    Protected
    Sub Uploader_FileUploaded(ByVal sender As Object, ByVal args As CuteWebUI.UploaderEventArgs) Handles Uploader1.FileUploaded
       Dim b1 as Integer = 0       <<<<< PUTTING A BREAKPOINT HERE. It is getting hit twice.
    End Sub 
     
    Here is the HTML
     
    <form id="form1" runat="server">
    <div class="content">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:Label ID="Label1" runat="server" CssClass="lbl_Messages">
                    Do NOT delete the file(s) you have uploaded until<br />
                    you confirm the successful transfer\decryption of all the files.
                </asp:Label>
                <br />
                <p>
                    Select multiple files in the file browser dialog then upload them at once</p>
                <CuteWebUI:Uploader runat="server" ID="Uploader1" InsertText="Upload Multiple Files (Max 10M)" MultipleFilesUpload="true" OnFileUploaded="Uploader_FileUploaded">
                    <ValidateOption MaxSizeKB="10240" />
                </CuteWebUI:Uploader>
                <br />
                <br />
                <div>
                    Server Trace:
                    <br />
                    <asp:ListBox runat="server" ID="ListBoxEvents" Width="400"></asp:ListBox>
                </div>
                <br />
                <br />
                <asp:Button ID="ButtonPostBack" Text="This is a PostBack button" runat="server" OnClick="ButtonPostBack_Click" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
     
    Filed under:
View Complete Thread