tags:

views:

145

answers:

3

Hi,

Thanks for your attention in advance, I'm new to ASP.NET AJAX AsyncFileUpload so I've created an aspx page to test it but it seems there's some bug with that control because the server side UploadedComplete event does not fire.

the aspx :

<form id="form1" runat="server" method="post" enctype="multipart/form-data">
<div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <cc1:AsyncFileUpload ID="AsyncFileUpload1" runat="server" OnUploadedComplete="AsyncFileUpload1_UploadedComplete" />
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </ContentTemplate>
    </asp:UpdatePanel>
</div>
</form>

and the code behind

public partial class Tester : System.Web.UI.Page
{
    protected void AsyncFileUpload1_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
    {
        this.Label1.Text = "OK";
    }
}

would anyone please let me know why it does not work? Thanks a lot

+1  A: 

You may take a look at this thread.

Darin Dimitrov