uploadify flash version - clear queue from .net code

257 views Asked by At

I am trying to clear an uploadify queue from a .net method by this:

      ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "javascript:$('#" + file_upload_reply.ClientID + "').uploadifyCancel('*')", True)

but it does not clear the queue. Is it possible to clear the queue using the command uploadifyCancel?

Thanks for any pointers.

1

There are 1 answers

3
en2012 On

Library ScriptManager:

Manages ASP.NET AJAX script libraries and script files, partial-page rendering, and client proxy class generation for Web and application services.

Use ClientScript:

Such as in Page_Load:

protected void Page_Load(object sender, EventArgs e)
    {
        ClientScriptManager cs = Page.ClientScript;
        if (!cs.IsStartupScriptRegistered("cancel"))
            cs.RegisterStartupScript(GetType(), "cancel", "javascript:$('#aa').uploadifyCancel('*')", true);
    }