Re: How can i achieve this in code behind

  •  03-31-2009, 12:03 AM

    Re: How can i achieve this in code behind

    Hi,
     
    You'd better setTimeout to check whether the uploader is initialized after AJAX postback.
     
    for example:
     

    function StartUpload()
    {
    var submitbutton=document.getElementById('<%=SubmitButton.ClientID %>');
    var uploadobj=document.getElementById('<%=Uploader1.ClientID %>');
    if(!uploadobj.startupload)//not initilaized
    {
     setTimeout(StartUpload,10);
     return;
    }

    ...other code.

    }

     
    Regards,
    Terry
View Complete Thread